Skip to content

Commit 291407c

Browse files
committed
Audit packages, update webpack devserver config
- Also changes module from commonjs to es2015, allows webpack to treeshake
1 parent 64a506a commit 291407c

File tree

4 files changed

+1312
-3952
lines changed

4 files changed

+1312
-3952
lines changed

Diff for: env.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const path = require('path');
2+
13
const outputConfig = {
24
destPath: "./dist"
35
};
@@ -24,7 +26,9 @@ const copyPluginPatterns = {
2426
// Dev server setup
2527
// https://webpack.js.org/configuration/dev-server/
2628
const devServer = {
27-
contentBase: outputConfig.destPath,
29+
static: {
30+
directory: path.join(__dirname, outputConfig.destPath),
31+
},
2832
// https: true,
2933
// port: "8080",
3034
// host: "0.0.0.0",

0 commit comments

Comments
 (0)