const HtmlWebpackPlugin = require('html-webpack-plugin')
const LoaderOptionsPlugin = require('webpack/lib/LoaderOptionsPlugin')
const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin')
+const InlineManifestWebpackPlugin = require('inline-manifest-webpack-plugin')
const ngcWebpack = require('ngc-webpack')
const WebpackNotifierPlugin = require('webpack-notifier')
new CommonsChunkPlugin({
name: 'vendor',
chunks: ['main'],
- minChunks: module => /node_modules\//.test(module.resource)
+ minChunks: module => {
+ return /node_modules\//.test(module.resource)
+ }
}),
// Specify the correct order the scripts will be injected in
}
),
- /*
- * Plugin: ScriptExtHtmlWebpackPlugin
- * Description: Enhances html-webpack-plugin functionality
- * with different deployment options for your scripts including:
- *
- * See: https://github.com/numical/script-ext-html-webpack-plugin
- */
- new ScriptExtHtmlWebpackPlugin({
- sync: [ /polyfill|vendor/ ],
- defaultAttribute: 'async',
- preload: [/polyfill|vendor|main/],
- prefetch: [/chunk/]
- }),
-
/*
* Plugin: HtmlWebpackPlugin
* Description: Simplifies creation of HTML files to serve your webpack bundles.
inject: 'body'
}),
+ /*
+ * Plugin: ScriptExtHtmlWebpackPlugin
+ * Description: Enhances html-webpack-plugin functionality
+ * with different deployment options for your scripts including:
+ *
+ * See: https://github.com/numical/script-ext-html-webpack-plugin
+ */
+ new ScriptExtHtmlWebpackPlugin({
+ sync: [ /polyfill|vendor/ ],
+ defaultAttribute: 'async',
+ preload: [/polyfill|vendor|main/],
+ prefetch: [/chunk/]
+ }),
+
new WebpackNotifierPlugin({ alwaysNotify: true }),
/**
new ngcWebpack.NgcWebpackPlugin({
disabled: !AOT,
tsConfig: helpers.root('tsconfig.webpack.json')
- })
+ }),
+
+ new InlineManifestWebpackPlugin(),
],
/*