1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 09:59:48 +02:00

update webpack building

This commit is contained in:
Ian Storm Taylor
2018-02-21 18:03:17 -08:00
parent 35f96c27d4
commit e6638f7822
2 changed files with 2 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
const path = require('path')
const webpack = require('webpack')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const HtmlWebpackTemplate = require('html-webpack-template')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
@@ -62,7 +61,6 @@ const config = {
'https://fonts.googleapis.com/icon?family=Material+Icons',
],
}),
IS_PROD && new CleanWebpackPlugin([path.resolve(__dirname, '../../build')]),
IS_PROD && new CopyWebpackPlugin(['examples/CNAME']),
IS_DEV && new NamedModulesPlugin(),
IS_DEV && new HotModuleReplacementPlugin(),