@elliemae/pui-cli 7.0.0-beta.4 → 7.0.0-beta.5
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.
|
@@ -13,7 +13,6 @@ const browserslistToEsbuild = require('browserslist-to-esbuild');
|
|
|
13
13
|
|
|
14
14
|
const {
|
|
15
15
|
excludeNodeModulesExcept,
|
|
16
|
-
getAppConfig,
|
|
17
16
|
modulesToTranspile,
|
|
18
17
|
getAlias,
|
|
19
18
|
getPaths,
|
|
@@ -34,13 +33,8 @@ const { buildPath } = getPaths();
|
|
|
34
33
|
const plugins = [
|
|
35
34
|
new webpack.EnvironmentPlugin({
|
|
36
35
|
NODE_ENV: 'development',
|
|
37
|
-
ASSET_PATH: '/',
|
|
38
|
-
// PUBLIC_PATH: publicPath,
|
|
39
36
|
CI: 'false',
|
|
40
37
|
}),
|
|
41
|
-
new webpack.DefinePlugin({
|
|
42
|
-
APP_CONFIG: getAppConfig(),
|
|
43
|
-
}),
|
|
44
38
|
new ProvidePlugin({
|
|
45
39
|
React: 'react',
|
|
46
40
|
}),
|
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
const {
|
|
1
|
+
const { EnvironmentPlugin } = require('webpack');
|
|
2
2
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
3
3
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
4
4
|
const ResolveTypeScriptPlugin = require('resolve-typescript-plugin');
|
|
5
|
-
const {
|
|
6
|
-
getAppConfig,
|
|
7
|
-
isApp,
|
|
8
|
-
getAlias,
|
|
9
|
-
getCompressionPlugins,
|
|
10
|
-
} = require('./helpers');
|
|
5
|
+
const { isApp, getAlias, getCompressionPlugins } = require('./helpers');
|
|
11
6
|
|
|
12
7
|
const IS_APP = isApp();
|
|
13
8
|
const CWD = process.cwd();
|
|
14
9
|
|
|
15
10
|
const getAdditionalPlugins = () => [
|
|
16
|
-
new DefinePlugin({
|
|
17
|
-
APP_CONFIG: getAppConfig(),
|
|
18
|
-
}),
|
|
19
11
|
new EnvironmentPlugin({
|
|
20
12
|
IS_APP,
|
|
21
13
|
CWD,
|
|
@@ -55,6 +47,10 @@ const getModuleRules = () => [
|
|
|
55
47
|
resourceQuery: /^((?!url).)*$/,
|
|
56
48
|
use: ['@svgr/webpack'],
|
|
57
49
|
},
|
|
50
|
+
{
|
|
51
|
+
resourceQuery: /resource/,
|
|
52
|
+
type: 'asset/resource',
|
|
53
|
+
},
|
|
58
54
|
];
|
|
59
55
|
|
|
60
56
|
exports.webpackFinal = async (config, { configType }) => {
|