@dr.pogodin/react-utils 1.57.0 → 1.57.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.
|
@@ -3,6 +3,7 @@ import { randomBytes } from 'node:crypto';
|
|
|
3
3
|
import nodeFs from 'node:fs';
|
|
4
4
|
import { createRequire } from 'node:module';
|
|
5
5
|
import { resolve } from 'node:path';
|
|
6
|
+
import autoprefixer from 'autoprefixer';
|
|
6
7
|
import { isFunction } from 'lodash-es';
|
|
7
8
|
import { SitemapStream, streamToPromise } from 'sitemap';
|
|
8
9
|
// NOTE: As "webpack" is still distributed as CJS module, now that we have
|
|
@@ -260,12 +261,19 @@ export default function configFactory({ babelEnv, babelLoaderExclude, babelLoade
|
|
|
260
261
|
/* Loads SCSS stylesheets. */
|
|
261
262
|
test: /\.scss$/,
|
|
262
263
|
type: 'css/module',
|
|
263
|
-
use: {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
264
|
+
use: [{
|
|
265
|
+
loader: 'postcss-loader',
|
|
266
|
+
options: {
|
|
267
|
+
postcssOptions: {
|
|
268
|
+
plugins: [autoprefixer],
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
}, {
|
|
272
|
+
loader: 'sass-loader',
|
|
273
|
+
options: {
|
|
274
|
+
sourceMap: true,
|
|
275
|
+
},
|
|
276
|
+
}],
|
|
269
277
|
}],
|
|
270
278
|
},
|
|
271
279
|
node: {
|
|
@@ -273,6 +281,8 @@ export default function configFactory({ babelEnv, babelLoaderExclude, babelLoade
|
|
|
273
281
|
},
|
|
274
282
|
output: {
|
|
275
283
|
chunkFilename: '[contenthash].js',
|
|
284
|
+
cssChunkFilename: '[contenthash].css',
|
|
285
|
+
cssFilename: '[contenthash].css',
|
|
276
286
|
filename: '[contenthash].js',
|
|
277
287
|
path: resolve(import.meta.dirname, context, outputPath),
|
|
278
288
|
publicPath: `${publicPath}/`,
|
|
@@ -40,6 +40,8 @@ export default function configFactory(ops) {
|
|
|
40
40
|
const res = merge(baseFactory(Object.assign(Object.assign({}, o), { babelEnv: 'development', entry, mode: 'development' })), {
|
|
41
41
|
output: {
|
|
42
42
|
chunkFilename: '[id].js',
|
|
43
|
+
cssChunkFilename: '[id].css',
|
|
44
|
+
cssFilename: '[id].css',
|
|
43
45
|
filename: '[id].js',
|
|
44
46
|
},
|
|
45
47
|
plugins,
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.57.
|
|
2
|
+
"version": "1.57.1",
|
|
3
3
|
"bin": {
|
|
4
4
|
"react-utils-build": "bin/build.js",
|
|
5
5
|
"react-utils-run-with-babel": "bin/run-with-babel.js",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"@types/serve-favicon": "^2.5.7",
|
|
82
82
|
"@types/supertest": "^7.2.1",
|
|
83
83
|
"@types/webpack": "^5.28.5",
|
|
84
|
+
"autoprefixer": "^10.6.1",
|
|
84
85
|
"babel-jest": "^30.5.2",
|
|
85
86
|
"babel-loader": "^10.1.1",
|
|
86
87
|
"babel-plugin-module-resolver": "^5.0.3",
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
"mockdate": "^3.0.5",
|
|
96
97
|
"nodelist-foreach-polyfill": "^1.2.0",
|
|
97
98
|
"postcss": "^8.5.28",
|
|
99
|
+
"postcss-loader": "^8.2.1",
|
|
98
100
|
"postcss-scss": "^4.0.9",
|
|
99
101
|
"pretty": "^2.0.0",
|
|
100
102
|
"react-refresh": "^0.19.0",
|