Skip to content

Commit 3deef8c

Browse files
Merge pull request #4 from lastcode802/fix/cssfile_Build
css file in build or lib problem solve
2 parents 99a4f71 + 78a6305 commit 3deef8c

File tree

2 files changed

+70
-1
lines changed

2 files changed

+70
-1
lines changed

package-lock.json

Lines changed: 65 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@
4949
"start_publish": "np --yolo --any-branch",
5050
"test": "react-scripts test --coverage ./src",
5151
"eject": "react-scripts eject",
52-
"build": "tsc --build ./tsconfig.json",
52+
"clean": "rimraf lib/",
53+
"copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css lib/",
54+
"build": "tsc --build ./tsconfig.json && npm run copy-files",
5355
"storybook": "start-storybook -p 6006 -s public",
5456
"build-storybook": "build-storybook -s public",
5557
"predeploy": "npm run build-storybook",
@@ -98,12 +100,14 @@
98100
"@types/three": "^0.144.0",
99101
"babel-plugin-named-exports-order": "0.0.2",
100102
"canvas": "^2.9.3",
103+
"copyfiles": "^2.4.1",
101104
"gh-pages": "^4.0.0",
102105
"gl": "^5.0.3",
103106
"node-gyp": "^9.1.0",
104107
"np": "^7.6.2",
105108
"prebuild-install": "^7.1.1",
106109
"prop-types": "^15.8.1",
110+
"rimraf": "^3.0.2",
107111
"webpack": "^5.74.0"
108112
},
109113
"bugs": {

0 commit comments

Comments
 (0)