You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add some entries to `package.json` to improve compatibility with webpack
- Add default `style` and `sass` exports as per webpack requirements
- Add `styles/*` exports for CSS files
- Add `scss/styles/*` exports for Scss files
- Add `*.scss` and `*.css` to "side effects" to prevent issues with
tree-shaking
With this commit, it is possible to import the style with the following
approaches:
```js
import "choices.js/styles/choices.css"; // CSS
import "choices.js/scss/styles/choices.scss"; // Scss
```
```scss
@import "choices.js/scss/styles/choices";
```
Refs:
- https://webpack.js.org/guides/package-exports/CloseChoices-js#1184
0 commit comments