Comments, removed unused code

This commit is contained in:
Paul Graffam 2016-10-06 23:16:25 -04:00
parent 9bc1583877
commit fe7b6a3e41
1 changed files with 6 additions and 17 deletions

View File

@ -1,13 +1,17 @@
// Global imports
var webpack = require('webpack'), var webpack = require('webpack'),
path = require('path'); path = require('path');
// Paths
var entry = './src/js/app.js', var entry = './src/js/app.js',
includePath = path.join(__dirname, 'src/js'), includePath = path.join(__dirname, 'src/js'),
nodeModulesPath = path.join(__dirname, 'node_modules'), nodeModulesPath = path.join(__dirname, 'node_modules'),
outputPath = path.join(__dirname, 'src/public/assets/js'); outputPath = path.join(__dirname, 'src/public/assets/js');
// Environment
var PROD = JSON.parse(process.env.NODE_ENV || 0); var PROD = JSON.parse(process.env.NODE_ENV || 0);
// Dev environment
var env = 'dev', var env = 'dev',
time = Date.now(), time = Date.now(),
devtool = 'eval', devtool = 'eval',
@ -20,6 +24,7 @@ var env = 'dev',
}) })
]; ];
// Production environment
if(PROD) { if(PROD) {
env = 'prod'; env = 'prod';
devtool = 'hidden-source-map'; devtool = 'hidden-source-map';
@ -48,25 +53,19 @@ module.exports = {
stats: { stats: {
colors: true colors: true
}, },
debug: debug, debug: debug,
devtool: devtool, devtool: devtool,
devServer: { devServer: {
contentBase: 'src/public' contentBase: 'src/public'
}, },
entry: [ entry: [
entry entry
], ],
output: { output: {
path: outputPath, path: outputPath,
publicPath: 'assets/js', publicPath: 'assets/js',
filename: 'app.js' filename: 'app.js'
}, },
module: { module: {
loaders: [ loaders: [
{ {
@ -81,15 +80,5 @@ module.exports = {
} }
] ]
}, },
plugins: plugins
sassLoader: {
outputStyle: 'compressed',
outFile: __dirname + '/src/public/assets/css'
},
plugins: plugins,
resolve: {
alias: {}
}
}; };