snappymail/webpack.config.js

42 lines
911 B
JavaScript
Raw Normal View History

2014-09-05 06:49:03 +08:00
var webpack = require('webpack');
module.exports = {
entry: {
'app': __dirname + '/dev/app.js',
'admin': __dirname + '/dev/admin.js'
2014-09-05 06:49:03 +08:00
},
output: {
pathinfo: true,
path: __dirname + '/rainloop/v/0.0.0/static/js/',
filename: '[name].js',
publicPath: 'rainloop/v/0.0.0/static/js/',
chunkFilename: '[chunkhash].chunk.js'
},
plugins: [
2014-09-05 07:22:39 +08:00
new webpack.optimize.OccurenceOrderPlugin()
2014-09-05 06:49:03 +08:00
],
resolve: {
modulesDirectories: [__dirname + '/dev/'],
extensions: ['', '.js'],
alias: {
"ko": __dirname + "/dev/External/ko.js"
2014-09-05 06:49:03 +08:00
}
},
externals: {
'window': 'window',
'JSON': 'JSON',
2014-09-19 23:24:38 +08:00
'JSEncrypt': 'window.JSEncrypt',
'$LAB': 'window.$LAB',
'SimplePace': 'window.SimplePace',
2014-09-05 06:49:03 +08:00
'moment': 'moment',
'ifvisible': 'ifvisible',
'crossroads': 'crossroads',
'hasher': 'hasher',
'Jua': 'Jua',
'Autolinker': 'Autolinker',
2014-09-05 06:49:03 +08:00
'ssm': 'ssm',
'key': 'key',
'_': '_',
'$': 'jQuery'
}
};