mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 04:34:00 +02:00
update webpack building
This commit is contained in:
@@ -16,7 +16,6 @@
|
|||||||
"babel-preset-stage-0": "^6.24.1",
|
"babel-preset-stage-0": "^6.24.1",
|
||||||
"babel-runtime": "^6.26.0",
|
"babel-runtime": "^6.26.0",
|
||||||
"chalk": "^1.1.3",
|
"chalk": "^1.1.3",
|
||||||
"clean-webpack-plugin": "^0.1.18",
|
|
||||||
"copy-webpack-plugin": "^4.4.1",
|
"copy-webpack-plugin": "^4.4.1",
|
||||||
"cross-env": "^5.1.3",
|
"cross-env": "^5.1.3",
|
||||||
"css-loader": "^0.28.9",
|
"css-loader": "^0.28.9",
|
||||||
@@ -73,7 +72,6 @@
|
|||||||
"style-loader": "^0.20.2",
|
"style-loader": "^0.20.2",
|
||||||
"to-camel-case": "^1.0.0",
|
"to-camel-case": "^1.0.0",
|
||||||
"to-title-case": "^1.0.0",
|
"to-title-case": "^1.0.0",
|
||||||
"uglifyjs-webpack-plugin": "^1.1.8",
|
|
||||||
"webpack": "^3.11.0",
|
"webpack": "^3.11.0",
|
||||||
"webpack-dev-server": "^2.11.1",
|
"webpack-dev-server": "^2.11.1",
|
||||||
"yaml-js": "^0.2.0"
|
"yaml-js": "^0.2.0"
|
||||||
@@ -91,8 +89,8 @@
|
|||||||
"bootstrap": "lerna bootstrap && yarn build",
|
"bootstrap": "lerna bootstrap && yarn build",
|
||||||
"build": "rollup --config ./support/rollup/config.js",
|
"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",
|
"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",
|
"clean": "lerna run clean && rm -rf ./node_modules ./dist ./build",
|
||||||
"gh-pages": "yarn build:gh-pages && gh-pages --dist ./examples/dist",
|
"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}'",
|
"lint": "eslint packages/*/src packages/*/test examples/*/*.js examples/dev/*/*.js && prettier --list-different '**/*.{js,jsx,md,json,css}'",
|
||||||
"open": "open http://localhost:8080",
|
"open": "open http://localhost:8080",
|
||||||
"prettier": "prettier --write '**/*.{js,jsx,md,json,css}'",
|
"prettier": "prettier --write '**/*.{js,jsx,md,json,css}'",
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
const path = require('path')
|
const path = require('path')
|
||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
const CleanWebpackPlugin = require('clean-webpack-plugin')
|
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||||
const HtmlWebpackTemplate = require('html-webpack-template')
|
const HtmlWebpackTemplate = require('html-webpack-template')
|
||||||
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
||||||
@@ -62,7 +61,6 @@ const config = {
|
|||||||
'https://fonts.googleapis.com/icon?family=Material+Icons',
|
'https://fonts.googleapis.com/icon?family=Material+Icons',
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
IS_PROD && new CleanWebpackPlugin([path.resolve(__dirname, '../../build')]),
|
|
||||||
IS_PROD && new CopyWebpackPlugin(['examples/CNAME']),
|
IS_PROD && new CopyWebpackPlugin(['examples/CNAME']),
|
||||||
IS_DEV && new NamedModulesPlugin(),
|
IS_DEV && new NamedModulesPlugin(),
|
||||||
IS_DEV && new HotModuleReplacementPlugin(),
|
IS_DEV && new HotModuleReplacementPlugin(),
|
||||||
|
Reference in New Issue
Block a user