app->src and starting at FeatureTest before Main.js

This commit is contained in:
Yotam Mann 2017-01-13 16:37:02 -05:00
parent 816d52858a
commit 6da3c5d1c5

View File

@ -21,7 +21,7 @@ var PROD = process.argv.indexOf('-p') !== -1
module.exports = {
'context': __dirname,
entry: {
'Main': 'app/Main',
'Main': 'src/FeatureTest',
},
output: {
filename: './build/[name].js',
@ -30,7 +30,7 @@ module.exports = {
},
resolve: {
root: __dirname,
modulesDirectories : ['node_modules', 'app', 'third_party', 'node_modules/tone', 'style'],
modulesDirectories : ['node_modules', 'src', 'third_party', 'node_modules/tone', 'style'],
},
plugins: PROD ? [
new webpack.optimize.UglifyJsPlugin({minimize: true})
@ -39,7 +39,7 @@ module.exports = {
loaders: [
{
test: /\.js$/,
exclude: /(node_modules)/,
exclude: /(node_modules|Tone\.js)/,
loader: 'babel', // 'babel-loader' is also a valid name to reference
query: {
presets: ['es2015']