Swap app code with bundles in assets/js/src folder

This commit is contained in:
Tautvidas Sipavičius
2015-08-17 14:31:32 +03:00
parent 9db0db83b1
commit 6ed4ce0de2
14 changed files with 5341 additions and 2038 deletions

View File

@ -13,7 +13,7 @@ baseConfig = {
admin: 'admin.js',
},
output: {
path: './assets/js/src',
path: './assets/js',
filename: '[name].js',
},
plugins: [
@ -36,12 +36,12 @@ baseConfig = {
resolve: {
modulesDirectories: [
'node_modules',
'assets/js',
'assets/js/src',
'assets/css/lib'
],
fallback: path.join(__dirname, 'node_modules'),
alias: {
'handlebars': 'handlebars/runtime.js'
'handlebars': 'handlebars/dist/handlebars.js'
}
},
resolveLoader: {
@ -71,13 +71,14 @@ module.exports = [
resolve: {
modulesDirectories: [
'node_modules',
'assets/js',
'assets/js/src',
'tests/javascript/newsletter_editor'
],
fallback: path.join(__dirname, 'node_modules'),
alias: {
'handlebars': 'handlebars/runtime.js'
'handlebars': 'handlebars/dist/handlebars.js'
}
},
plugins: [],
})
];