Skip to content

Commit 8bebe39

Browse files
authored
chore(build): ignore order of css files (#1298)
1 parent f0742ab commit 8bebe39

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

config-overrides.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22

3+
const MiniCSSExtractPlugin = require('mini-css-extract-plugin');
34
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
4-
55
const srcRoot = path.resolve(__dirname, 'src');
66
const uiKitRoot = path.resolve(__dirname, 'node_modules/@gravity-ui/uikit');
77
const uiKitIconsRoot = path.resolve(__dirname, 'node_modules/@gravity-ui/icons');
@@ -34,6 +34,11 @@ module.exports = {
3434
}),
3535
);
3636

37+
const cssExtractPlugin = config.plugins.find((p) => p instanceof MiniCSSExtractPlugin);
38+
if (cssExtractPlugin) {
39+
cssExtractPlugin.options.ignoreOrder = true;
40+
}
41+
3742
return config;
3843
},
3944
jest: (config) => {

package-lock.json

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
"husky": "^9.0.11",
148148
"jest-transform-css": "^6.0.1",
149149
"lint-staged": "^15.2.7",
150+
"mini-css-extract-plugin": "^2.9.1",
150151
"monaco-editor-webpack-plugin": "^7.1.0",
151152
"monaco-yql-languages": "^1.0.6",
152153
"npm-run-all": "^4.1.5",

0 commit comments

Comments
 (0)