Make build faster

This commit is contained in:
Tyler Long 2017-09-01 18:34:10 +08:00
parent 6fe62060c6
commit f6b5c704e8
2 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,7 @@
"live": "live-server ./test/examples",
"jison": "gulp jison_legacy",
"live_server": "gulp live-server",
"prepublishOnly": "yarn release && yarn test"
"prepublishOnly": "yarn build && yarn release && yarn test"
},
"repository": {
"type": "git",

View File

@ -26,6 +26,7 @@ export const webConfig = () => {
rules: rules.concat([
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
@ -63,6 +64,7 @@ export const nodeConfig = () => {
rules: rules.concat([
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {