浏览 86
分享
Plugins
Plugins allow us to inject custom build steps during the bundling process.
A commonly used plugin is the html-webpack-plugin
. This allows us to generate HTML files required for production. For example it can be used to inject script tags for the output bundles.
new HtmlWebpackPlugin({
template: './src/index.html',
inject: 'body',
minify: false
});
原文: https://angular-2-training-book.rangle.io/handout/project-setup/plugins.html
评论列表