Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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/ Close Choices-js#1184
- Loading branch information