mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Update deps
This commit is contained in:
parent
87bfa64af0
commit
95eb786a3f
7 changed files with 489 additions and 185 deletions
|
|
@ -7,9 +7,34 @@ const
|
|||
WebpackNotifierPlugin = require('webpack-notifier'),
|
||||
loose = true;
|
||||
|
||||
const babelLoaderOptions = function() {
|
||||
return {
|
||||
cacheDirectory: true,
|
||||
presets: [
|
||||
['@babel/preset-env', {
|
||||
loose: loose,
|
||||
modules: false,
|
||||
targets: {
|
||||
browsers: ['last 3 versions', 'ie >= 9', 'firefox esr']
|
||||
}
|
||||
}]
|
||||
],
|
||||
plugins: [
|
||||
['@babel/plugin-transform-runtime', {
|
||||
corejs: 2
|
||||
}],
|
||||
['@babel/plugin-proposal-decorators', {
|
||||
legacy: true
|
||||
}],
|
||||
'@babel/plugin-proposal-class-properties'
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
process.noDeprecation = true;
|
||||
module.exports = function(publicPath, pro) {
|
||||
return {
|
||||
mode: 'production',
|
||||
entry: {
|
||||
'js/boot': path.join(__dirname, 'dev', 'boot.js'),
|
||||
'js/app': path.join(__dirname, 'dev', 'app.js'),
|
||||
|
|
@ -21,6 +46,9 @@ module.exports = function(publicPath, pro) {
|
|||
filename: '[name].js',
|
||||
publicPath: publicPath || 'rainloop/v/0.0.0/static/'
|
||||
},
|
||||
performance: {
|
||||
hints: false
|
||||
},
|
||||
optimization: {
|
||||
concatenateModules: false,
|
||||
minimize: false
|
||||
|
|
@ -49,30 +77,10 @@ module.exports = function(publicPath, pro) {
|
|||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.(js|ts)$/,
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
include: [devPath],
|
||||
options: {
|
||||
cacheDirectory: true,
|
||||
presets: [
|
||||
['@babel/preset-env', {
|
||||
loose: loose,
|
||||
modules: false,
|
||||
targets: {
|
||||
browsers: ['last 3 versions', 'ie >= 9', 'firefox esr']
|
||||
}
|
||||
}]
|
||||
],
|
||||
plugins: [
|
||||
['@babel/plugin-transform-runtime', {
|
||||
corejs: 2
|
||||
}],
|
||||
['@babel/plugin-proposal-decorators', {
|
||||
legacy: true
|
||||
}],
|
||||
'@babel/plugin-proposal-class-properties'
|
||||
]
|
||||
}
|
||||
options: babelLoaderOptions()
|
||||
},
|
||||
{
|
||||
test: /\.(html|css)$/,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue