Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32164226
D5224.1765047108.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1000 B
Referenced Files
None
Subscribers
None
D5224.1765047108.diff
View Options
diff --git a/lib/webpack/shared.cjs b/lib/webpack/shared.cjs
--- a/lib/webpack/shared.cjs
+++ b/lib/webpack/shared.cjs
@@ -1,3 +1,4 @@
+const { VanillaExtractPlugin } = require('@vanilla-extract/webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
@@ -102,6 +103,7 @@
BROWSER: true,
},
}),
+ new VanillaExtractPlugin(),
new MiniCssExtractPlugin({
filename: 'prod.[contenthash:12].build.css',
}),
@@ -139,10 +141,12 @@
cssExtractLoader,
{
...cssLoader,
+ sideEffects: true,
options: {
...cssLoader.options,
url: false,
- modules: false,
+ modules: true,
+ sourceMap: true,
},
},
],
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 6:51 PM (16 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5840262
Default Alt Text
D5224.1765047108.diff (1000 B)
Attached To
Mode
D5224: [landing] added sideEffects to solve node_module CSS (rainbowkit) not being added in production
Attached
Detach File
Event Timeline
Log In to Comment