Migrate to webpack 4

This commit is contained in:
Yuya Ochiai
2018-05-25 23:12:52 +09:00
parent 74b49e7d2d
commit 4f308f7d40
4 changed files with 1082 additions and 74 deletions

View File

@@ -1,6 +1,8 @@
/* eslint-disable import/no-commonjs */
'use strict';
const path = require('path');
const merge = require('webpack-merge');
const base = require('./webpack.config.base');
@@ -8,7 +10,8 @@ const base = require('./webpack.config.base');
module.exports = merge(base, {
entry: './src/main.js',
output: {
filename: './src/[name]_bundle.js',
path: path.join(__dirname, 'src'),
filename: '[name]_bundle.js',
},
node: {
__filename: true,