Skip to content

Commit aebc717

Browse files
committed
Add a "sass" entry point to package.json simplify webpack imports
Details on how the "sass" entry point is consumed is at: https://sass-lang.com/documentation/js-api/classes/nodepackageimporter/ Other packages use this. For example Bootstrap: https://github.com/twbs/bootstrap/blob/ddf5853c7bd8537cf8abc3776181b570b21eaefc/package.json#L39
1 parent d8e0809 commit aebc717

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"src"
1010
],
1111
"main": "src/rails_admin/base.js",
12+
"sass": "src/rails_admin/styles/base.scss",
1213
"scripts": {
1314
"link": "yarn link && cd spec/dummy_app && yarn link rails_admin",
1415
"format": "prettier -w ."

0 commit comments

Comments
 (0)