@elliemae/pui-cli 6.12.0 → 6.13.0-beta.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.
|
@@ -29,13 +29,13 @@ const finalCSSLoader = (mode) =>
|
|
|
29
29
|
mode !== 'production' ? { loader: 'style-loader' } : minicssLoader;
|
|
30
30
|
|
|
31
31
|
const postcssPlugins = [PostcssPresetEnv({ autoprefixer: { grid: true } })];
|
|
32
|
-
const { buildPath
|
|
32
|
+
const { buildPath } = getPaths();
|
|
33
33
|
|
|
34
34
|
const plugins = [
|
|
35
35
|
new webpack.EnvironmentPlugin({
|
|
36
36
|
NODE_ENV: 'development',
|
|
37
37
|
ASSET_PATH: '/',
|
|
38
|
-
PUBLIC_PATH: publicPath,
|
|
38
|
+
// PUBLIC_PATH: publicPath,
|
|
39
39
|
CI: 'false',
|
|
40
40
|
}),
|
|
41
41
|
new webpack.DefinePlugin({
|
|
@@ -126,7 +126,7 @@ module.exports = (options) => ({
|
|
|
126
126
|
output: {
|
|
127
127
|
clean: true,
|
|
128
128
|
path: buildPath,
|
|
129
|
-
publicPath,
|
|
129
|
+
publicPath: 'auto',
|
|
130
130
|
...options.output,
|
|
131
131
|
}, // Merge with env dependent settings
|
|
132
132
|
optimization: options.optimization,
|
|
@@ -9,7 +9,6 @@ const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
|
|
|
9
9
|
const smp = new SpeedMeasurePlugin({ disable: !process.env.MEASURE });
|
|
10
10
|
|
|
11
11
|
const {
|
|
12
|
-
getAssetPath,
|
|
13
12
|
isAppLoaderEnabled,
|
|
14
13
|
getPaths,
|
|
15
14
|
isGoogleTagManagerEnabled,
|
|
@@ -18,7 +17,6 @@ const baseConfigFactory = require('./webpack.base.babel');
|
|
|
18
17
|
|
|
19
18
|
const {
|
|
20
19
|
appVersion,
|
|
21
|
-
publicPath,
|
|
22
20
|
userMonScriptPath,
|
|
23
21
|
globalScriptPath,
|
|
24
22
|
appLoaderScriptPath,
|
|
@@ -83,8 +81,6 @@ const devConfig = {
|
|
|
83
81
|
: 'app/index-app-loader.html',
|
|
84
82
|
emui: {
|
|
85
83
|
appVersion,
|
|
86
|
-
assetPath: publicPath,
|
|
87
|
-
basePath: getAssetPath(),
|
|
88
84
|
globalScriptPath,
|
|
89
85
|
userMonScriptPath,
|
|
90
86
|
appLoaderScriptPath,
|
|
@@ -10,7 +10,6 @@ const browserslistToEsbuild = require('browserslist-to-esbuild');
|
|
|
10
10
|
|
|
11
11
|
const baseConfigFactory = require('./webpack.base.babel');
|
|
12
12
|
const {
|
|
13
|
-
getAssetPath,
|
|
14
13
|
isAppLoaderEnabled,
|
|
15
14
|
LATEST_VERSION,
|
|
16
15
|
getPaths,
|
|
@@ -20,7 +19,7 @@ const {
|
|
|
20
19
|
} = require('./helpers');
|
|
21
20
|
|
|
22
21
|
const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
23
|
-
const { buildPath
|
|
22
|
+
const { buildPath } = getPaths(latestVersion);
|
|
24
23
|
|
|
25
24
|
return {
|
|
26
25
|
mode: 'production',
|
|
@@ -32,7 +31,7 @@ const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
|
32
31
|
// Utilize long-term caching by adding content hashes (not compilation hashes) to compiled assets
|
|
33
32
|
output: {
|
|
34
33
|
path: buildPath,
|
|
35
|
-
publicPath,
|
|
34
|
+
publicPath: 'auto',
|
|
36
35
|
filename: 'js/[name].[contenthash].js',
|
|
37
36
|
chunkFilename: 'js/[name].[contenthash].chunk.js',
|
|
38
37
|
assetModuleFilename: 'assets/[name].[hash][ext][query]',
|
|
@@ -94,7 +93,6 @@ const getProdConfig = ({ latestVersion = true } = {}) => {
|
|
|
94
93
|
};
|
|
95
94
|
|
|
96
95
|
const {
|
|
97
|
-
publicPath,
|
|
98
96
|
userMonScriptPath,
|
|
99
97
|
globalScriptPath,
|
|
100
98
|
appLoaderScriptPath,
|
|
@@ -122,8 +120,6 @@ const htmlWebpackPlugin = new HtmlWebpackPlugin({
|
|
|
122
120
|
},
|
|
123
121
|
emui: {
|
|
124
122
|
appVersion: 'latest',
|
|
125
|
-
assetPath: publicPath,
|
|
126
|
-
basePath: getAssetPath(),
|
|
127
123
|
globalScriptPath,
|
|
128
124
|
userMonScriptPath,
|
|
129
125
|
appLoaderScriptPath,
|