Skip to content

Commit

Permalink
Cleanup unused variables in webpack configs. Rename search.jsx entry …
Browse files Browse the repository at this point in the history
…point to SearchInterface.jsx
  • Loading branch information
jlbooker committed Oct 4, 2016
1 parent d7b2fa5 commit 06f84e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
9 changes: 7 additions & 2 deletions webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@ var webpack = require('webpack');
var path = require('path');
var Promise = require('es6-promise').polyfill();

var APP_DIR = path.resolve(__dirname, '');
//var APP_DIR = path.resolve(__dirname, '');
var JS_DIR = path.resolve(__dirname, 'javascript');

module.exports = {
devtool: 'eval',
entry: {
createInterface: JS_DIR + '/createInterface/CreateInternshipInterface.jsx',
searchInterface: JS_DIR + '/searchInterface/search.jsx',
searchInterface: JS_DIR + '/searchInterface/SearchInterface.jsx',
editAdmin: JS_DIR + '/editAdmin/editAdmin.jsx'
},
output: {
path: path.join(JS_DIR, "dist"),
filename: "[name].dev.js"
},
externals: {
"jquery": "$"
},
module: {
loaders: [
{
Expand All @@ -36,4 +39,6 @@ module.exports = {
configFile: path.join(__dirname, '.eslintrc.js'),
useEslintrc: false
},
plugins: [
]
}
11 changes: 7 additions & 4 deletions webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var WebpackStripLoader = require('strip-loader');
var path = require('path');
var Promise = require('es6-promise').polyfill();

var APP_DIR = path.resolve(__dirname, '');
//var APP_DIR = path.resolve(__dirname, '');
var JS_DIR = path.resolve(__dirname, 'javascript');

module.exports = {
Expand All @@ -12,23 +12,26 @@ module.exports = {
devtool: 'source-map',
entry: {
createInterface: JS_DIR + '/createInterface/CreateInternshipInterface.jsx',
searchInterface: JS_DIR + '/searchInterface/search.jsx',
searchInterface: JS_DIR + '/searchInterface/SearchInterface.jsx',
editAdmin: JS_DIR + '/editAdmin/editAdmin.jsx'
},
output: {
path: path.join(JS_DIR, "dist"),
filename: "[name]-[hash].min.js",
chunkFilename: '[name].[chunkhash:8].chunk.js'
},
externals: {
"jquery": "$"
},
module: {
loaders: [{
enforce: "pre",
test: /\.(js|jsx)$/,
loader: "eslint",
include: JS_DIR
}, {
test: /\.jsx?/,
include: APP_DIR,
test: /\.(js|jsx)$/,
include: JS_DIR,
loader: 'babel'
}, {
test: [/\.js$/, /\.es6$/, /\.jsx$/],
Expand Down

0 comments on commit 06f84e6

Please sign in to comment.