Skip to content

Commit

Permalink
Rename const
Browse files Browse the repository at this point in the history
  • Loading branch information
lbassin committed Nov 29, 2017
1 parent 6954a4c commit c0454d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const dev = process.env.NODE_ENV === "dev";
const path = require('path');
const webpack = require('webpack');
const htmlWebpackPlugin = require('html-webpack-plugin');
const Webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const exec = require('child_process').exec;
const uglifyJs = require('uglifyjs-webpack-plugin');
const UglifyJs = require('uglifyjs-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');

// Html-webpack-plugin configuration
Expand Down Expand Up @@ -137,15 +137,15 @@ let webpackConfig = {
},
// Customize the webpack build process with additionals plugins
plugins: [
new htmlWebpackPlugin(indexConfig),
new webpack.ContextReplacementPlugin(/angular([\\\/])core([\\\/])/, path.resolve(__dirname, './src')),
new HtmlWebpackPlugin(indexConfig),
new Webpack.ContextReplacementPlugin(/angular([\\\/])core([\\\/])/, path.resolve(__dirname, './src')),
],
};

// UglifyJs and clean output folder only for prod
if (!dev) {
webpackConfig.plugins.push(new CleanWebpackPlugin(pathsToClean));
webpackConfig.plugins.push(new uglifyJs());
webpackConfig.plugins.push(new UglifyJs());
}

// Export the config
Expand Down

0 comments on commit c0454d7

Please sign in to comment.