arui-scripts 19.0.2 → 19.0.3

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.
@@ -5,19 +5,19 @@ ts-jest[versions] (WARN) Version 29.7.0 of jest installed has not been tested wi
5
5
  ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
6
6
  ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
7
7
  ts-jest[versions] (WARN) Version 5.6.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=4.3.0 <5.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
8
- PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (26.411 s)
8
+ PASS src/configs/app-configs/__tests__/update-with-presets.tests.ts (27.328 s)
9
9
  PASS src/configs/util/__tests__/get-polyfills.tests.ts
10
- PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (26.868 s)
10
+ PASS src/plugins/postcss-global-variables/utils/__tests__/add-global-variable.tests.ts (27.271 s)
11
11
  PASS src/configs/util/__tests__/apply-overrides.tests.ts
12
- PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
13
12
  PASS src/configs/app-configs/__tests__/update-with-env.tests.ts
13
+ PASS src/configs/app-configs/__tests__/update-with-package.tests.ts
14
14
  PASS src/plugins/postcss-global-variables/utils/__tests__/parse-variables.tests.ts
15
15
  PASS src/configs/app-configs/__tests__/validate-settings-keys.tests.ts
16
16
  PASS src/plugins/postcss-global-variables/utils/__tests__/get-media-query-name.tests.ts
17
- PASS src/configs/util/__tests__/find-plugin.tests.ts (29.062 s)
17
+ PASS src/configs/util/__tests__/find-plugin.tests.ts (30.299 s)
18
18
 
19
19
  Test Suites: 10 passed, 10 total
20
20
  Tests: 26 passed, 26 total
21
21
  Snapshots: 0 total
22
- Time: 29.89 s
22
+ Time: 31.278 s
23
23
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # [15.3.0](https://github.com/core-ds/arui-scripts/compare/v15.2.0...v15.3.0) (2023-06-30)
2
2
 
3
+ ## 19.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#306](https://github.com/core-ds/arui-scripts/pull/306) [`9c9b71d`](https://github.com/core-ds/arui-scripts/commit/9c9b71dcda22b2c391838094da680a6a3214a005) Thanks [@heymdall-legal](https://github.com/heymdall-legal)! - Исправлена загрузка картинок подключенных на сервере
8
+
3
9
  ## 19.0.2
4
10
 
5
11
  ### Patch Changes
@@ -11,6 +11,7 @@ const path_1 = __importDefault(require("path"));
11
11
  const getCSSModuleLocalIdent_1 = __importDefault(require("react-dev-utils/getCSSModuleLocalIdent"));
12
12
  const core_1 = require("@rspack/core");
13
13
  const case_sensitive_paths_webpack_plugin_1 = __importDefault(require("case-sensitive-paths-webpack-plugin"));
14
+ const mini_svg_data_uri_1 = __importDefault(require("mini-svg-data-uri"));
14
15
  const run_script_webpack_plugin_1 = require("run-script-webpack-plugin");
15
16
  const webpack_node_externals_1 = __importDefault(require("webpack-node-externals"));
16
17
  const reload_server_plugin_1 = require("../plugins/reload-server-plugin");
@@ -47,7 +48,7 @@ const createServerConfig = (mode) => ({
47
48
  entry: (0, get_entry_1.default)(app_configs_1.default.serverEntry, getSingleEntry, mode),
48
49
  context: app_configs_1.default.cwd,
49
50
  output: {
50
- assetModuleFilename: 'static/media/[name].[hash:8][ext]',
51
+ assetModuleFilename: `${app_configs_1.default.assetsPath}/static/media/[name].[hash:8][ext]`,
51
52
  // Add /* filename */ comments to generated require()s in the output.
52
53
  pathinfo: true,
53
54
  path: app_configs_1.default.serverOutputPath,
@@ -125,11 +126,23 @@ const createServerConfig = (mode) => ({
125
126
  ],
126
127
  },
127
128
  {
128
- exclude: [/\.(js|jsx|mjs|ts|tsx)$/, /\.(html|ejs)$/, /\.json$/],
129
+ test: /\.svg/,
130
+ type: 'asset',
131
+ generator: {
132
+ dataUrl: (file) => (0, mini_svg_data_uri_1.default)(file.content.toString()),
133
+ publicPath: ''
134
+ },
135
+ parser: {
136
+ dataUrlCondition: {
137
+ maxSize: app_configs_1.default.dataUrlMaxSize,
138
+ },
139
+ },
140
+ },
141
+ {
142
+ exclude: [/\.(js|jsx|mjs|ts|tsx)$/, /\.(html|ejs)$/, /\.json$/, /\.svg$/],
129
143
  type: 'asset/resource',
130
144
  generator: {
131
- outputPath: app_configs_1.default.publicPath,
132
- publicPath: app_configs_1.default.publicPath,
145
+ publicPath: ''
133
146
  },
134
147
  },
135
148
  ].filter(Boolean),