@vanilla-extract/next-plugin 2.1.0 → 2.1.1
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
CHANGED
|
@@ -34,7 +34,7 @@ Basically, it’s [“CSS Modules](https://github.com/css-modules/css-modules)-i
|
|
|
34
34
|
|
|
35
35
|
---
|
|
36
36
|
|
|
37
|
-
🖥 [Try it out for yourself in CodeSandbox.](https://codesandbox.io/s/github/
|
|
37
|
+
🖥 [Try it out for yourself in CodeSandbox.](https://codesandbox.io/s/github/vanilla-extract-css/vanilla-extract/tree/master/examples/webpack-react?file=/src/App.css.ts)
|
|
38
38
|
|
|
39
39
|
---
|
|
40
40
|
|
|
@@ -46,7 +46,10 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) =>
|
|
|
46
46
|
experimental: nextConfig.experimental || {}
|
|
47
47
|
}, () => css.lazyPostCSS(dir, getSupportedBrowsers(dir, dev)), [])
|
|
48
48
|
});
|
|
49
|
-
config.plugins.push(new webpackPlugin.VanillaExtractPlugin(
|
|
49
|
+
config.plugins.push(new webpackPlugin.VanillaExtractPlugin({
|
|
50
|
+
outputCss: !isServer,
|
|
51
|
+
...pluginOptions
|
|
52
|
+
}));
|
|
50
53
|
|
|
51
54
|
if (typeof nextConfig.webpack === 'function') {
|
|
52
55
|
return nextConfig.webpack(config, options);
|
|
@@ -46,7 +46,10 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) =>
|
|
|
46
46
|
experimental: nextConfig.experimental || {}
|
|
47
47
|
}, () => css.lazyPostCSS(dir, getSupportedBrowsers(dir, dev)), [])
|
|
48
48
|
});
|
|
49
|
-
config.plugins.push(new webpackPlugin.VanillaExtractPlugin(
|
|
49
|
+
config.plugins.push(new webpackPlugin.VanillaExtractPlugin({
|
|
50
|
+
outputCss: !isServer,
|
|
51
|
+
...pluginOptions
|
|
52
|
+
}));
|
|
50
53
|
|
|
51
54
|
if (typeof nextConfig.webpack === 'function') {
|
|
52
55
|
return nextConfig.webpack(config, options);
|
|
@@ -38,7 +38,10 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) =>
|
|
|
38
38
|
experimental: nextConfig.experimental || {}
|
|
39
39
|
}, () => lazyPostCSS(dir, getSupportedBrowsers(dir, dev)), [])
|
|
40
40
|
});
|
|
41
|
-
config.plugins.push(new VanillaExtractPlugin(
|
|
41
|
+
config.plugins.push(new VanillaExtractPlugin({
|
|
42
|
+
outputCss: !isServer,
|
|
43
|
+
...pluginOptions
|
|
44
|
+
}));
|
|
42
45
|
|
|
43
46
|
if (typeof nextConfig.webpack === 'function') {
|
|
44
47
|
return nextConfig.webpack(config, options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanilla-extract/next-plugin",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Zero-runtime Stylesheets-in-TypeScript",
|
|
5
5
|
"main": "dist/vanilla-extract-next-plugin.cjs.js",
|
|
6
6
|
"module": "dist/vanilla-extract-next-plugin.esm.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/vanilla-extract-css/vanilla-extract.git",
|
|
13
13
|
"directory": "packages/next-plugin"
|
|
14
14
|
},
|
|
15
15
|
"author": "SEEK",
|