Skip to content

Commit 39a13cf

Browse files
committed
docs: fix demo deployment
1 parent 52134a0 commit 39a13cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"test:coverage": "jest --coverage && ./cc-test-reporter after-build --id=\"d957b5ff2f78e200b7cfa4e294ac1fe52c823c7d7c327628f897271dc72a874e\"",
1717
"deploy": "npm run build:demo && gh-pages -d build",
1818
"storybook": "cross-env TARGET=development start-storybook -p ${PORT:-3001} -h 0.0.0.0",
19-
"build-storybook": "cross-env NODE_ENV=production TARGET=demo build-storybook -o build/storybook"
19+
"build-storybook": "cross-env NODE_ENV=production build-storybook -o build/storybook"
2020
},
2121
"main": "dist/main.js",
2222
"files": [

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const cssLoader = {
3434
const defaultCssLoaders = [cssLoader, postcssLoader];
3535

3636
const cssLoaders =
37-
target !== 'development'
37+
target !== 'development' && target !== 'demo'
3838
? ExtractTextPlugin.extract({
3939
fallback: styleLoader,
4040
use: defaultCssLoaders,

0 commit comments

Comments
 (0)