X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/blobdiff_plain/b3b840f89948d96aa28760fc5cf41c384488f6a6..90acf9e63b09882525fa5a58872a172b585b46fc:/config/webpack.js 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 + } }; -