+ new DllBundlesPlugin({
+ bundles: {
+ polyfills: [
+ 'core-js',
+ {
+ name: 'zone.js',
+ path: 'zone.js/dist/zone.js'
+ },
+ {
+ name: 'zone.js',
+ path: 'zone.js/dist/long-stack-trace-zone.js'
+ }
+ ],
+ vendor: [
+ '@angular/platform-browser',
+ '@angular/platform-browser-dynamic',
+ '@angular/core',
+ '@angular/common',
+ '@angular/forms',
+ '@angular/http',
+ '@angular/router',
+ '@angularclass/hmr',
+ 'rxjs'
+ ]
+ },
+ dllDir: helpers.root('dll'),
+ webpackConfig: webpackMergeDll(commonConfig({env: ENV}), {
+ devtool: 'cheap-module-source-map',
+ plugins: []
+ })
+ }),
+
+ /**
+ * Plugin: AddAssetHtmlPlugin
+ * Description: Adds the given JS or CSS file to the files
+ * Webpack knows about, and put it into the list of assets
+ * html-webpack-plugin injects into the generated html.
+ *
+ * See: https://github.com/SimenB/add-asset-html-webpack-plugin
+ */
+ new AddAssetHtmlPlugin([
+ { filepath: helpers.root(`dll/${DllBundlesPlugin.resolveFile('polyfills')}`) },
+ { filepath: helpers.root(`dll/${DllBundlesPlugin.resolveFile('vendor')}`) }
+ ]),
+