Skip to content

Commit

Permalink
Removed file-loader, uglifyJs, url-loader, and clean plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Padget committed Jun 20, 2017
1 parent 83a66ff commit 76c2a09
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ltg-fe",
"version": "0.1.0",
"description": "Looking to game Front-End",
"description": "Looking to game front end",
"main": "server.js",
"directories": {
"test": "test"
Expand Down Expand Up @@ -46,7 +46,6 @@
"css-loader": "^0.28.4",
"dotenv": "^4.0.0",
"extract-text-webpack-plugin": "^2.1.2",
"file-loader": "^0.11.2",
"html-loader": "^0.4.5",
"html-webpack-plugin": "^2.28.0",
"node-sass": "^4.5.3",
Expand Down
15 changes: 0 additions & 15 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ require('dotenv').load();

const webpack = require('webpack');
const HTMLPlugin = require('html-webpack-plugin');
const CleanPlugin = require('clean-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');

const production = process.env.NODE_ENV === 'production';
Expand All @@ -18,16 +17,6 @@ let plugins = [
}),
];

if(production){
plugins = plugins.concat([
new webpack.optimize.UglifyJsPlugin({
mangle: true,
compress: {warnings: false},
}),
new CleanPlugin(),
]);
}

module.exports = {
entry: `${__dirname}/app/entry.js`,
devtool: production ? false : 'source-map',
Expand Down Expand Up @@ -65,10 +54,6 @@ module.exports = {
],
}),
},
{
test: /\.(woff|ttf|svg|eot).*/,
use: 'url-loader?limit=10000&name=image/[hash].[ext]',
},
],
},
};

0 comments on commit 76c2a09

Please sign in to comment.