fixed webpackDevConfig

This commit is contained in:
antelle 2019-01-04 22:20:01 +01:00
parent 9f836be3c8
commit 152bea3547
1 changed files with 5 additions and 11 deletions

View File

@ -133,24 +133,18 @@ module.exports = function(grunt) {
};
const webpackDevConfig = Object.assign({}, webpackConfig, {
resolve: {
modules: [path.join(__dirname, 'app/scripts'), path.join(__dirname, 'node_modules')],
alias: {
resolve: Object.assign({}, webpackConfig.resolve, {
alias: Object.assign({}, webpackConfig.resolve.alias, {
backbone: 'backbone/backbone.js',
underscore: 'underscore/underscore.js',
_: 'underscore/underscore.js',
jquery: 'jquery/dist/jquery.js',
kdbxweb: 'kdbxweb/dist/kdbxweb.js',
baron: 'baron/baron.js',
pikaday: 'pikaday/pikaday.js',
filesaver: 'FileSaver.js/FileSaver.js',
qrcode: 'jsqrcode/dist/qrcode.js',
'argon2': 'argon2-browser/docs/dist/argon2.js',
hbs: 'handlebars/runtime.js',
'argon2-wasm': 'argon2-browser/dist/argon2.wasm',
templates: path.join(__dirname, 'app/templates')
}
}
'argon2': 'argon2-browser/docs/dist/argon2.js'
})
})
});
grunt.initConfig({