Merge pull request #428 from netlify/fix-dev-annoyances
Fix dev server cors and disable publish script for installs
This commit is contained in:
commit
bc27296859
@ -9,7 +9,7 @@
|
||||
"test:watch": "jest --watch",
|
||||
"build": "NODE_ENV=production webpack --config webpack.prod.js",
|
||||
"build:scripts": "NODE_ENV=production webpack --config webpack.cli.js",
|
||||
"prepublish": "npm run build",
|
||||
"prepublish": "in-publish && npm run build || not-in-publish",
|
||||
"storybook": "start-storybook -p 9001",
|
||||
"storybook-build": "build-storybook -o dist",
|
||||
"lint": "npm run lint:js & npm run lint:css",
|
||||
@ -68,6 +68,7 @@
|
||||
"file-loader": "^0.8.5",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"imports-loader": "^0.6.5",
|
||||
"in-publish": "^2.0.0",
|
||||
"jest": "19.1.0-alpha.eed82034",
|
||||
"jest-cli": "19.1.0-alpha.eed82034",
|
||||
"lint-staged": "^3.1.0",
|
||||
|
@ -58,5 +58,7 @@ module.exports = merge.smart(require('./webpack.base.js'), {
|
||||
contentBase: 'example/',
|
||||
historyApiFallback: true,
|
||||
devTool: 'cheap-module-source-map',
|
||||
disableHostCheck: true,
|
||||
headers: {"Access-Control-Allow-Origin": "*"},
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user