Change babel presets

Tune the compiled output to reduce file size.
This commit is contained in:
Nicolas Gallagher
2017-12-30 21:00:20 -08:00
parent 6f10f6be9c
commit 46e77d0b00
9 changed files with 49 additions and 94 deletions
+6 -2
View File
@@ -2,11 +2,13 @@
const path = require('path');
const webpack = require('webpack');
const appDirectory = path.resolve(__dirname);
module.exports = {
context: __dirname,
entry: ['babel-polyfill', './src/index'],
output: {
path: path.resolve(__dirname, 'dist'),
path: path.resolve(appDirectory, 'dist'),
filename: 'performance.bundle.js'
},
module: {
@@ -23,7 +25,9 @@ module.exports = {
},
{
test: /\.js$/,
exclude: /node_modules/,
include: [
path.resolve(appDirectory, 'src'),
],
use: {
loader: 'babel-loader',
options: {