app->src and starting at FeatureTest before Main.js
This commit is contained in:
parent
816d52858a
commit
6da3c5d1c5
@ -21,7 +21,7 @@ var PROD = process.argv.indexOf('-p') !== -1
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
'context': __dirname,
|
'context': __dirname,
|
||||||
entry: {
|
entry: {
|
||||||
'Main': 'app/Main',
|
'Main': 'src/FeatureTest',
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: './build/[name].js',
|
filename: './build/[name].js',
|
||||||
@ -30,7 +30,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
root: __dirname,
|
root: __dirname,
|
||||||
modulesDirectories : ['node_modules', 'app', 'third_party', 'node_modules/tone', 'style'],
|
modulesDirectories : ['node_modules', 'src', 'third_party', 'node_modules/tone', 'style'],
|
||||||
},
|
},
|
||||||
plugins: PROD ? [
|
plugins: PROD ? [
|
||||||
new webpack.optimize.UglifyJsPlugin({minimize: true})
|
new webpack.optimize.UglifyJsPlugin({minimize: true})
|
||||||
@ -39,7 +39,7 @@ module.exports = {
|
|||||||
loaders: [
|
loaders: [
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
exclude: /(node_modules)/,
|
exclude: /(node_modules|Tone\.js)/,
|
||||||
loader: 'babel', // 'babel-loader' is also a valid name to reference
|
loader: 'babel', // 'babel-loader' is also a valid name to reference
|
||||||
query: {
|
query: {
|
||||||
presets: ['es2015']
|
presets: ['es2015']
|
||||||
|
Loading…
Reference in New Issue
Block a user