- new HtmlWebpackPlugin({
- template: 'src/index.html',
- chunksSortMode: 'dependency'
+ new ScriptExtHtmlWebpackPlugin({
+ sync: [ /polyfill|vendor/ ],
+ defaultAttribute: 'async',
+ preload: [/polyfill|vendor|main/],
+ prefetch: [/chunk/]
+ }),
+
+ new WebpackNotifierPlugin({ alwaysNotify: true }),
+
+ /**
+ * Plugin LoaderOptionsPlugin (experimental)
+ *
+ * See: https://gist.github.com/sokra/27b24881210b56bbaff7
+ */
+ new LoaderOptionsPlugin({
+ options: {
+ context: '',
+ sassLoader: {
+ precision: 10,
+ includePaths: [ helpers.root('src/sass') ]
+ }
+ }
+ }),
+
+ new ngcWebpack.NgcWebpackPlugin({
+ disabled: !AOT,
+ tsConfig: helpers.root('tsconfig.webpack.json')