1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-16 12:14:14 +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

@@ -16,7 +16,6 @@
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.26.0",
"chalk": "^1.1.3",
"clean-webpack-plugin": "^0.1.18",
"copy-webpack-plugin": "^4.4.1",
"cross-env": "^5.1.3",
"css-loader": "^0.28.9",
@@ -73,7 +72,6 @@
"style-loader": "^0.20.2",
"to-camel-case": "^1.0.0",
"to-title-case": "^1.0.0",
"uglifyjs-webpack-plugin": "^1.1.8",
"webpack": "^3.11.0",
"webpack-dev-server": "^2.11.1",
"yaml-js": "^0.2.0"
@@ -91,8 +89,8 @@
"bootstrap": "lerna bootstrap && yarn build",
"build": "rollup --config ./support/rollup/config.js",
"build:gh-pages": "cross-env NODE_ENV=production rollup --config ./support/rollup/config.js && cross-env NODE_ENV=production webpack --config support/webpack/config.js",
"clean": "lerna run clean && rm -rf ./node_modules ./dist ./examples/dist",
"gh-pages": "yarn build:gh-pages && gh-pages --dist ./examples/dist",
"clean": "lerna run clean && rm -rf ./node_modules ./dist ./build",
"gh-pages": "rm -rf ./build && yarn build:gh-pages && gh-pages --dist ./build",
"lint": "eslint packages/*/src packages/*/test examples/*/*.js examples/dev/*/*.js && prettier --list-different '**/*.{js,jsx,md,json,css}'",
"open": "open http://localhost:8080",
"prettier": "prettier --write '**/*.{js,jsx,md,json,css}'",

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(),