Skip to content

Commit 2177ae3

Browse files
committed
fix(cms): Fix clean-stack version because it is not browser compatible
decap cms should remove this library one day or another
1 parent b49be8a commit 2177ae3

File tree

4 files changed

+462
-456
lines changed

4 files changed

+462
-456
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
},
6767
"dependencies": {
6868
"@babel/preset-react": "^7.27.1",
69+
"@dnd-kit/core": "^6.3.1",
70+
"@dnd-kit/sortable": "^10.0.0",
71+
"@dnd-kit/utilities": "^3.2.2",
6972
"buffer": "^6.0.3",
7073
"cypress": "^15.4.0",
7174
"date-fns": "^4.1.0",
@@ -83,5 +86,8 @@
8386
"stream-http": "^3.2.0",
8487
"to-string-loader": "^1.2.0",
8588
"url": "^0.11.4"
89+
},
90+
"resolutions": {
91+
"clean-stack": "5.2.0"
8692
}
8793
}

src/cms.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66

7-
<title>Content Manager</title>
7+
<title>Content Manager</title>
88

9-
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
10-
</head>
11-
<body>
12-
<script src="<%= htmlWebpackPlugin.publicPath %>/<%= htmlWebpackPlugin.files.js[1] %>"></script>
13-
</body>
9+
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
10+
</head>
11+
<body>
12+
<script src="<%= htmlWebpackPlugin.publicPath %><%= htmlWebpackPlugin.files.js[1] %>"></script>
13+
</body>
1414
</html>

webpack.common.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727

2828
output: {
2929
path: path.join(__dirname, "dist"),
30-
publicPath: "",
30+
publicPath: "/",
3131
clean: true,
3232
},
3333

@@ -97,9 +97,6 @@ module.exports = {
9797
plugins: [
9898
new NodePolyfillPlugin(),
9999
new RemoveNodeSchemePlugin(),
100-
new webpack.IgnorePlugin({
101-
resourceRegExp: /^clean-stack$/,
102-
}),
103100

104101
new AssetsPlugin({
105102
filename: "webpack.json",

0 commit comments

Comments
 (0)