Skip to content

Commit

Permalink
Merge pull request #1193 from ifad/bugfix/style-export
Browse files Browse the repository at this point in the history
Fix regression where webpack doesn't permit importing scss/css
  • Loading branch information
Xon authored Sep 2, 2024
2 parents 1801a04 + 5721e9a commit 438b16b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
".": {
"types": "./public/types/src/index.d.ts",
"import": "./public/assets/scripts/choices.mjs",
"require": "./public/assets/scripts/choices.js"
"require": "./public/assets/scripts/choices.js",
"style": "./public/assets/styles/choices.css",
"sass": "./src/styles/choices.scss"
},
"./search-basic": {
"types": "./public/types/src/index.d.ts",
Expand All @@ -23,9 +25,15 @@
"types": "./public/types/src/index.d.ts",
"import": "./public/assets/scripts/choices.search-none.mjs",
"require": "./public/assets/scripts/choices.search-none.min.js"
}
},
"./public/assets/styles/*.css": "./public/assets/styles/*.css",
"./src/styles/*.scss": "./src/styles/*.scss",
"./src/styles/*": "./src/styles/*.scss"
},
"sideEffects": false,
"sideEffects": [
"*.scss",
"*.css"
],
"scripts": {
"start": "run-p js:watch css:watch",
"build": "run-p js:build css:build",
Expand Down

0 comments on commit 438b16b

Please sign in to comment.