@griddo/ax 1.73.19 → 1.73.21
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/config/webpack.config.js +22 -6
- package/package.json +5 -3
package/config/webpack.config.js
CHANGED
|
@@ -22,10 +22,12 @@ const ModuleNotFoundPlugin = require("react-dev-utils/ModuleNotFoundPlugin");
|
|
|
22
22
|
const ForkTsCheckerWebpackPlugin = require("react-dev-utils/ForkTsCheckerWebpackPlugin");
|
|
23
23
|
const typescriptFormatter = require("react-dev-utils/typescriptFormatter");
|
|
24
24
|
const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin");
|
|
25
|
-
const
|
|
25
|
+
const SassAlias = require("sass-alias");
|
|
26
26
|
|
|
27
27
|
const postcssNormalize = require("postcss-normalize");
|
|
28
28
|
|
|
29
|
+
const { resolveComponentsPath, projectAliases } = require("../config/griddo-config");
|
|
30
|
+
|
|
29
31
|
//
|
|
30
32
|
// PostCSS config file from components
|
|
31
33
|
//
|
|
@@ -45,8 +47,6 @@ if (fs.existsSync(postcssConfigPath)) {
|
|
|
45
47
|
postcssConfigPlugins = postcssConfig.plugins || [];
|
|
46
48
|
}
|
|
47
49
|
|
|
48
|
-
const { projectAliases } = require("./griddo-config");
|
|
49
|
-
|
|
50
50
|
const appPackageJson = require(paths.appPackageJson);
|
|
51
51
|
|
|
52
52
|
// Source maps are resource heavy and can cause out of memory issue for large source files.
|
|
@@ -105,7 +105,7 @@ module.exports = function (webpackEnv) {
|
|
|
105
105
|
const shouldUseReactRefresh = env.raw.FAST_REFRESH;
|
|
106
106
|
|
|
107
107
|
// common function to get style loaders
|
|
108
|
-
const getStyleLoaders = (cssOptions, preProcessor) => {
|
|
108
|
+
const getStyleLoaders = (cssOptions, preProcessor, preProcessorOptions = {}) => {
|
|
109
109
|
const loaders = [
|
|
110
110
|
isEnvDevelopment && require.resolve("style-loader"),
|
|
111
111
|
isEnvProduction && {
|
|
@@ -148,6 +148,7 @@ module.exports = function (webpackEnv) {
|
|
|
148
148
|
},
|
|
149
149
|
},
|
|
150
150
|
].filter(Boolean);
|
|
151
|
+
|
|
151
152
|
if (preProcessor) {
|
|
152
153
|
loaders.push(
|
|
153
154
|
{
|
|
@@ -161,6 +162,7 @@ module.exports = function (webpackEnv) {
|
|
|
161
162
|
loader: require.resolve(preProcessor),
|
|
162
163
|
options: {
|
|
163
164
|
sourceMap: true,
|
|
165
|
+
...preProcessorOptions,
|
|
164
166
|
},
|
|
165
167
|
}
|
|
166
168
|
);
|
|
@@ -489,7 +491,14 @@ module.exports = function (webpackEnv) {
|
|
|
489
491
|
importLoaders: 3,
|
|
490
492
|
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
|
|
491
493
|
},
|
|
492
|
-
"sass-loader"
|
|
494
|
+
"sass-loader",
|
|
495
|
+
{
|
|
496
|
+
sassOptions: {
|
|
497
|
+
importer: new SassAlias({
|
|
498
|
+
...projectAliases,
|
|
499
|
+
}).getImporter(),
|
|
500
|
+
},
|
|
501
|
+
}
|
|
493
502
|
),
|
|
494
503
|
// Don't consider CSS imports dead code even if the
|
|
495
504
|
// containing package claims to have no side effects.
|
|
@@ -509,7 +518,14 @@ module.exports = function (webpackEnv) {
|
|
|
509
518
|
getLocalIdent: getCSSModuleLocalIdent,
|
|
510
519
|
},
|
|
511
520
|
},
|
|
512
|
-
"sass-loader"
|
|
521
|
+
"sass-loader",
|
|
522
|
+
{
|
|
523
|
+
sassOptions: {
|
|
524
|
+
importer: new SassAlias({
|
|
525
|
+
...projectAliases,
|
|
526
|
+
}).getImporter(),
|
|
527
|
+
},
|
|
528
|
+
}
|
|
513
529
|
),
|
|
514
530
|
},
|
|
515
531
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "1.73.
|
|
4
|
+
"version": "1.73.21",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -138,7 +138,9 @@
|
|
|
138
138
|
"reflect-metadata": "0.1.13",
|
|
139
139
|
"resolve": "^1.20.0",
|
|
140
140
|
"resolve-url-loader": "^4.0.0",
|
|
141
|
-
"sass
|
|
141
|
+
"sass": "^1.55.0",
|
|
142
|
+
"sass-alias": "^1.0.5",
|
|
143
|
+
"sass-loader": "^10.0.0",
|
|
142
144
|
"semver": "^7.3.5",
|
|
143
145
|
"source-map-loader": "^1.1.2",
|
|
144
146
|
"string-replace-loader": "^3.0.1",
|
|
@@ -226,5 +228,5 @@
|
|
|
226
228
|
"publishConfig": {
|
|
227
229
|
"access": "public"
|
|
228
230
|
},
|
|
229
|
-
"gitHead": "
|
|
231
|
+
"gitHead": "68c40e730af694eea2892dfa5410081a0ca8eb26"
|
|
230
232
|
}
|