mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 10:56:53 -05:00
Add sourcemaps
This commit is contained in:
parent
667ea35d0c
commit
1ae6513b2d
1 changed files with 1 additions and 1 deletions
|
@ -16,10 +16,10 @@ module.exports = {
|
||||||
root: [path.resolve('./app'), path.resolve('./app/templates')],
|
root: [path.resolve('./app'), path.resolve('./app/templates')],
|
||||||
extensions: ['', '.web.coffee', '.web.js', '.coffee', '.js', '.jade']
|
extensions: ['', '.web.coffee', '.web.js', '.coffee', '.js', '.jade']
|
||||||
},
|
},
|
||||||
|
devtool: 'inline-source-map',
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.ContextReplacementPlugin(/./, function(context){
|
new webpack.ContextReplacementPlugin(/./, function(context){
|
||||||
if (context.resource === path.resolve('./app/views')) {
|
if (context.resource === path.resolve('./app/views')) {
|
||||||
console.log(context.regExp);
|
|
||||||
context.regExp = /^.*Home.*$/i;
|
context.regExp = /^.*Home.*$/i;
|
||||||
}
|
}
|
||||||
console.log(arguments);
|
console.log(arguments);
|
||||||
|
|
Loading…
Reference in a new issue