Skip to content

Commit

Permalink
bump webpack and fix some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Apr 12, 2024
1 parent 9ad2b00 commit 5056886
Show file tree
Hide file tree
Showing 14 changed files with 1,723 additions and 2,850 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use one of the demo directories that interests you the most.

```sh
git clone https://github.com/yjs/yjs-demos.git
npm install
cd yjs-demos/${demo-directory}
npm install
npm start
Expand Down
2 changes: 1 addition & 1 deletion codemirror.next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"watch": "webpack -w --stats errors-only",
"dist": "webpack --mode=production",
"start": "webpack serve --open --open-page codemirror.next.html"
"start": "webpack serve --open codemirror.next.html"
},
"author": "Kevin Jahns <[email protected]>",
"license": "UNLICENSE",
Expand Down
5 changes: 2 additions & 3 deletions codemirror.next/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ module.exports = {
publicPath: '/codemirror/dist/'
},
devServer: {
contentBase: path.join(__dirname),
compress: true,
publicPath: '/dist/'
static: path.join(__dirname),
compress: true
}
}
2 changes: 1 addition & 1 deletion codemirror/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"watch": "webpack -w --stats errors-only",
"dist": "webpack --mode=production",
"start": "webpack serve --open --open-page codemirror.html"
"start": "webpack serve --open codemirror.html"
},
"author": "Kevin Jahns <[email protected]>",
"license": "UNLICENSE",
Expand Down
5 changes: 2 additions & 3 deletions codemirror/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ module.exports = {
publicPath: '/codemirror/dist/'
},
devServer: {
contentBase: path.join(__dirname),
compress: true,
publicPath: '/dist/'
static: path.join(__dirname),
compress: true
}
}
2 changes: 1 addition & 1 deletion monaco/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"watch": "webpack -w --stats errors-only",
"dist": "webpack --mode=production",
"start": "webpack serve --open --open-page monaco.html"
"start": "webpack serve --open monaco.html"
},
"author": "Kevin Jahns <[email protected]>",
"license": "UNLICENSE",
Expand Down
5 changes: 2 additions & 3 deletions monaco/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ module.exports = {
]
},
devServer: {
contentBase: path.join(__dirname),
compress: true,
publicPath: '/dist/'
static: path.join(__dirname),
compress: true
},
plugins: [new MonacoWebpackPlugin({
publicPath: './dist/'
Expand Down
Loading

0 comments on commit 5056886

Please sign in to comment.