X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/blobdiff_plain/f2a4303543b0b0c1a62681c74244176aa778f417..efee4ba168340dbb22e65f0f63f04e609cc07117:/config/webpack.js?ds=inline diff --git a/config/webpack.js b/config/webpack.js index 793e011..b213d0c 100644 --- a/config/webpack.js +++ b/config/webpack.js @@ -1,12 +1,10 @@ -'use strict'; - const Path = require('path'); const Webpack = require('webpack'); module.exports = { entry: { - serpentity: './lib/serpentity.js', - "serpentity.min": './lib/serpentity.js', + serpentity: './lib/serpentity.js', + 'serpentity.min': './lib/serpentity.js' }, output: { @@ -17,14 +15,11 @@ module.exports = { }, module: { - loaders: [ + rules: [ { test: /\.js$/, exclude: /(node_modules|doc)/, - loader: 'babel-loader', - query: { - presets: ['es2015'] - } + use: 'babel-loader' } ] }, @@ -35,16 +30,12 @@ module.exports = { Path.resolve(__dirname, '../lib') ], - extensions: ['.js'], + extensions: ['.js'] }, context: Path.resolve(__dirname, '..'), - plugins : [ - new Webpack.optimize.UglifyJsPlugin({ - include: /\.min\.js$/, - minimize: true - }) - ] + optimization: { + minimize: true + } }; -