Slide 30
Slide 30 text
loader: "babel-loader",
options: {
presets: ['env']
}
}
},
"//html-loader
{ test: /\.html$/, use: ['html-loader'] }
]
},
plugins: [
new CleanWebpackPlugin(['dist']),
"//html-webpack-plugin instantiation
new HtmlWebpackPlugin({
template: 'index.html'
})
],
devServer: {
contentBase: path.resolve("__dirname, "./dist/assets/media"),
compress: true,
port: 12000,
stats: 'errors-only',
open: true
},
devtool: 'inline-source-map'
}
module.exports = config;