Skip to content

Commit

Permalink
fix: fixes #118
Browse files Browse the repository at this point in the history
  • Loading branch information
mo2menelzeiny authored Jan 31, 2018
1 parent f3bc99a commit 6d21e69
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const postcssUrl = require('postcss-url');
const customProperties = require('postcss-custom-properties');

const { NoEmitOnErrorsPlugin, SourceMapDevToolPlugin, DefinePlugin, NamedModulesPlugin } = require('webpack');
const { BaseHrefWebpackPlugin, NamedLazyChunksWebpackPlugin, InsertConcatAssetsWebpackPlugin } = require('@angular/cli/plugins/webpack');
const { BaseHrefWebpackPlugin, NamedLazyChunksWebpackPlugin, ScriptsWebpackPlugin } = require('@angular/cli/plugins/webpack');
const { CommonsChunkPlugin } = require('webpack').optimize;
const { AngularCompilerPlugin } = require('@ngtools/webpack');
const ConcatPlugin = require('webpack-concat-plugin');
Expand Down Expand Up @@ -93,9 +93,11 @@ function getPlugins() {
"fileName": "[name].bundle.js",
"filesToConcat": scripts
}));
plugins.push(new InsertConcatAssetsWebpackPlugin([
"scripts"
]));
plugins.push(new ScriptsWebpackPlugin({
name: "scripts",
sourceMap: true,
scripts: scripts
}));
}

plugins.push(new CopyWebpackPlugin([
Expand Down

0 comments on commit 6d21e69

Please sign in to comment.