This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "devDependencies": { | |
| "css-loader": "^2.1.0", | |
| "lit-element": "^2.0.1", | |
| "node-sass": "^4.11.0", | |
| "sass-loader": "^7.1.0", | |
| "webpack": "^4.29.0", | |
| "webpack-cli": "^3.2.1" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugins: [ | |
| isProd && new webpack.optimize.SplitChunksPlugin({}), | |
| new htmlPlugin({ | |
| filename: 'index.html', | |
| template: 'src/index.html', | |
| chunks: ['index'], | |
| }), | |
| isProd && new BundleAnalyzerPlugin({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function (_, env) { | |
| const isProd = env.mode === 'production'; | |
| return { | |
| mode: isProd ? 'production' : 'development', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts": { | |
| "start": "webpack-dev-server --hot", | |
| "build": "webpack -p" | |
| } |
NewerOlder