-
-
Save 0xAnon101/5d3999614b715d1e9fc875d2532ecd2b to your computer and use it in GitHub Desktop.
This file contains 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
const HtmlWebPackPlugin = require('html-webpack-plugin'); | |
const htmlPlugin = new HtmlWebPackPlugin({ | |
template: "./src/index.html", | |
filename: "./index.html" | |
}) | |
module.exports = (env,argv) => { | |
return { | |
optimization: { | |
nodeEnv: argv.mode | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
use: { | |
loader: 'babel-loader' | |
} | |
}, | |
] | |
}, | |
plugins: [htmlPlugin] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment