Skip to content

Commit 3d38d43

Browse files
committed
refactor: update UIKit Webpack build to support inlining Sass files within JavaScript components + add support for JS components loading Sass files that aren't intended to be inlined; add support for externally exposing build config options via cosmic config
1 parent 397cd2f commit 3d38d43

File tree

3 files changed

+241
-153
lines changed

3 files changed

+241
-153
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// .rc config file allowing users to customize folder locations, etc that are wired up to be configurable in the build process (via cosmic config) -- this example lives in the root of UIKit however can live in a higher-level parent as part of your project's config!
2+
3+
module.exports = {
4+
// buildDir: '../../../www/pattern-lab',
5+
}

packages/uikit-workshop/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"jshint": "^2.9.5"
3333
},
3434
"devDependencies": {
35+
"node-sass-selector-importer": "^5.2.0",
3536
"@babel/core": "^7.0.0",
3637
"@babel/plugin-proposal-class-properties": "^7.0.0",
3738
"@babel/plugin-proposal-decorators": "^7.0.0",

0 commit comments

Comments
 (0)