mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
ES2015 first look / babeljs
This commit is contained in:
parent
5dcceaaca5
commit
445cd155e5
123 changed files with 3214 additions and 3680 deletions
|
|
@ -19,20 +19,31 @@ module.exports = {
|
|||
],
|
||||
resolve: {
|
||||
modulesDirectories: [__dirname + '/dev/'],
|
||||
extensions: ['', '.js'],
|
||||
extensions: ['', '.js', '.jsx'],
|
||||
alias: {
|
||||
"Opentip": __dirname + "/dev/External/Opentip.js",
|
||||
"ko": __dirname + "/dev/External/ko.js"
|
||||
'Opentip': __dirname + '/dev/External/Opentip.js',
|
||||
'ko': __dirname + '/dev/External/ko.js'
|
||||
}
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.jsx$/,
|
||||
loader: 'babel',
|
||||
exclude: /(node_modules|bower_components)/,
|
||||
query: {
|
||||
cacheDirectory: true,
|
||||
presets: ['es2015']
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
externals: {
|
||||
'window': 'window',
|
||||
'JSON': 'window.JSON',
|
||||
'JSEncrypt': 'window.JSEncrypt',
|
||||
'$LAB': 'window.$LAB',
|
||||
'progressJs': 'window.rainloopProgressJs',
|
||||
'PhotoSwipe': 'window.PhotoSwipe',
|
||||
'PhotoSwipeUI_Default': 'window.PhotoSwipeUI_Default',
|
||||
'queue': 'window.queue',
|
||||
'moment': 'window.moment',
|
||||
'ifvisible': 'window.ifvisible',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue