mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
babeljs: step 2
This commit is contained in:
parent
007a03b8d4
commit
53cf543795
74 changed files with 2551 additions and 2963 deletions
|
|
@ -1,9 +1,13 @@
|
|||
var webpack = require('webpack');
|
||||
|
||||
var
|
||||
path = require('path'),
|
||||
webpack = require('webpack')
|
||||
;
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
'app': __dirname + '/dev/app.js',
|
||||
'admin': __dirname + '/dev/admin.js'
|
||||
'app': __dirname + '/dev/app.jsx',
|
||||
'admin': __dirname + '/dev/admin.jsx'
|
||||
},
|
||||
output: {
|
||||
pathinfo: true,
|
||||
|
|
@ -18,7 +22,7 @@ module.exports = {
|
|||
new webpack.optimize.OccurenceOrderPlugin()
|
||||
],
|
||||
resolve: {
|
||||
modulesDirectories: [__dirname + '/dev/'],
|
||||
root: path.resolve(__dirname, 'dev'),
|
||||
extensions: ['', '.js', '.jsx'],
|
||||
alias: {
|
||||
'Opentip': __dirname + '/dev/External/Opentip.js',
|
||||
|
|
@ -33,7 +37,8 @@ module.exports = {
|
|||
exclude: /(node_modules|bower_components)/,
|
||||
query: {
|
||||
cacheDirectory: true,
|
||||
presets: ['es2015']
|
||||
// plugins: ['transform-runtime'],
|
||||
presets: ['es2015', 'stage-0']
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue