Using SCSS bundler

This commit is contained in:
reverend 2020-08-23 19:20:56 +02:00
parent 07243d5974
commit 22ba839453
2 changed files with 12 additions and 2 deletions

View File

@ -5,11 +5,13 @@
"@frctl/fractal": "^1.2.1", "@frctl/fractal": "^1.2.1",
"fractal": "0.0.3", "fractal": "0.0.3",
"node-sass": "^4.14.1", "node-sass": "^4.14.1",
"sass": "^1.26.10" "sass": "^1.26.10",
"scss-bundle": "^3.1.2"
}, },
"scripts": { "scripts": {
"sass": "node-sass -w components/rcss.scss -o public/ --recursive", "sass": "node-sass -w components/rcss.scss -o public/ --recursive",
"styleguide": "fractal start --sync", "styleguide": "fractal start --sync",
"suite": "npm run sass & npm run styleguide" "suite": "npm run sass & npm run styleguide",
"bundle": "scss-bundel"
} }
} }

8
scss-bundle.config.json Normal file
View File

@ -0,0 +1,8 @@
{
"bundlerOptions": {
"entryFile": "./components/rcss.scss",
"rootDir": ".",
"outFile": "./dist/rcss.bundled.scss",
"logLevel": "silent"
}
}