carbon-preprocess-svelte 0.11.20 → 0.11.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/index.js +35030 -12
- package/dist/plugins/optimize-css.d.ts +1 -1
- package/package.json +8 -6
- package/dist/component-index.js +0 -7
- package/dist/constants.js +0 -13
- package/dist/plugins/OptimizeCssPlugin.js +0 -52
- package/dist/plugins/create-optimized-css.js +0 -90
- package/dist/plugins/optimize-css.js +0 -38
- package/dist/plugins/print-diff.js +0 -38
- package/dist/preprocessors/optimize-imports.js +0 -74
- package/dist/utils.js +0 -15
package/README.md
CHANGED
|
@@ -130,10 +130,10 @@ export default {
|
|
|
130
130
|
This code is abridged; see [examples/webpack](examples/webpack) for a full set-up.
|
|
131
131
|
|
|
132
132
|
```js
|
|
133
|
-
// webpack.config.
|
|
134
|
-
|
|
133
|
+
// webpack.config.mjs
|
|
134
|
+
import { optimizeImports } from "carbon-preprocess-svelte";
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
export default {
|
|
137
137
|
module: {
|
|
138
138
|
rules: [
|
|
139
139
|
{
|
|
@@ -261,12 +261,12 @@ For Webpack users, `OptimizeCssPlugin` is a drop-in replacement for `optimizeCss
|
|
|
261
261
|
This code is abridged; see [examples/webpack](examples/webpack) for a full set-up.
|
|
262
262
|
|
|
263
263
|
```js
|
|
264
|
-
// webpack.config.
|
|
265
|
-
|
|
264
|
+
// webpack.config.mjs
|
|
265
|
+
import { OptimizeCssPlugin } from "carbon-preprocess-svelte";
|
|
266
266
|
|
|
267
267
|
const PROD = process.env.NODE_ENV === "production";
|
|
268
268
|
|
|
269
|
-
|
|
269
|
+
export default {
|
|
270
270
|
plugins: [
|
|
271
271
|
// Only apply the plugin when building for production.
|
|
272
272
|
PROD && new OptimizeCssPlugin(),
|