Skip to content

Commit 00d7fa3

Browse files
committed
setup craco & less-loader
1 parent f80a5b1 commit 00d7fa3

File tree

5 files changed

+325
-7
lines changed

5 files changed

+325
-7
lines changed

craco.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const CracoLessPlugin = require("craco-less");
2+
3+
module.exports = {
4+
plugins: [{ plugin: CracoLessPlugin }]
5+
};

package-lock.json

Lines changed: 307 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6+
"@craco/craco": "^5.1.0",
67
"@types/jest": "24.0.12",
78
"@types/node": "12.0.0",
89
"@types/react": "16.8.17",
910
"@types/react-dom": "16.8.4",
11+
"craco-less": "^1.7.0",
1012
"react": "^16.8.6",
1113
"react-dom": "^16.8.6",
1214
"react-scripts": "3.0.1",
1315
"typescript": "3.4.5"
1416
},
1517
"scripts": {
16-
"start": "react-scripts start",
17-
"build": "react-scripts build",
18-
"test": "react-scripts test",
18+
"start": "craco start",
19+
"build": "craco build",
20+
"test": "craco test",
1921
"eject": "react-scripts eject"
2022
},
2123
"eslintConfig": {

0 commit comments

Comments
 (0)