refactor(build): copy style.css from dist/nocss to dist

This commit is contained in:
moklick
2021-01-20 10:50:31 +01:00
parent 0ab155ff02
commit 040cf60699
3 changed files with 10139 additions and 28 deletions
+10137 -25
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -10,7 +10,7 @@
"url": "https://github.com/wbkd/react-flow.git"
},
"scripts": {
"build": "rollup -c --environment NODE_ENV:production",
"build": "rollup -c --environment NODE_ENV:production && move-file dist/nocss/style.css dist/style.css",
"start": "rollup -w -c",
"start:examples": "rollup -c rollup.examples.js -w",
"build:examples": "rollup -c rollup.examples.js --environment NODE_ENV:production",
@@ -58,13 +58,13 @@
"cypress": "^6.2.1",
"dagre": "^0.8.5",
"localforage": "^1.9.0",
"move-file-cli": "^2.0.0",
"postcss": "^8.2.4",
"postcss-nested": "^5.0.3",
"prettier": "2.2.1",
"prop-types": "^15.7.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-flow-renderer": "^8.3.2",
"react-router-dom": "^5.2.0",
"release-it": "^14.2.2",
"rollup": "^2.36.2",
-1
View File
@@ -44,7 +44,6 @@ const baseConfig = ({ mainFile = pkg.main, moduleFile = pkg.module, extractCss =
}),
bundleSize(),
postcss({
minimize: isProd,
extract: extractCss,
}),
babel({