Mise à niveau de webpack-dev-server vers 4.1.0 + évolution configuration webpack.
This commit is contained in:
parent
3f332381be
commit
3789606764
2338
package-lock.json
generated
2338
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -36,7 +36,7 @@
|
||||
"typescript": "^4.4.2",
|
||||
"webpack": "^5.51.1",
|
||||
"webpack-cli": "^4.8.0",
|
||||
"webpack-dev-server": "^3.11.2"
|
||||
"webpack-dev-server": "^4.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"natural-orderby": "^2.0.3",
|
||||
|
@ -3,15 +3,14 @@ const path = require('path');
|
||||
module.exports =
|
||||
{
|
||||
mode: "development",
|
||||
devtool: "inline-source-map",
|
||||
entry:
|
||||
{
|
||||
firstExample: "./src/firstExample.ts",
|
||||
},
|
||||
output:
|
||||
{
|
||||
filename: "./JS/[name].app.js",
|
||||
path: path.resolve(__dirname, "public")
|
||||
path: path.resolve(__dirname, "public"),
|
||||
filename: "JS/[name].app.js"
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
@ -26,6 +25,6 @@ module.exports =
|
||||
],
|
||||
},
|
||||
devServer: {
|
||||
contentBase: path.join(__dirname, "public")
|
||||
static: path.join(__dirname, "public")
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user