@umijs/bundler-webpack 4.0.0-rc.5 → 4.0.0-rc.8
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/compiled/autoprefixer/browserslist/index.d.ts +2 -0
- package/compiled/autoprefixer/index.js +3 -3
- package/compiled/autoprefixer/postcss/lib/declaration.d.ts +1 -1
- package/compiled/autoprefixer/postcss/lib/node.d.ts +2 -2
- package/compiled/cssnano/index.js +5 -5
- package/compiled/express.d.ts +2 -0
- package/compiled/http-proxy-middleware/index.js +10 -10
- package/compiled/mini-css-extract-plugin/index.js +440 -401
- package/compiled/mini-css-extract-plugin/loader.js +3 -1
- package/compiled/mini-css-extract-plugin/utils.js +2 -0
- package/compiled/terser/index.js +1 -1
- package/compiled/webpack/index.js +3974 -3052
- package/compiled/webpack-manifest-plugin/index.js +1 -1
- package/dist/config/cssRules.js +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/plugins/ESBuildCSSMinifyPlugin.js +1 -3
- package/dist/plugins/ParcelCSSMinifyPlugin.d.ts +1 -1
- package/dist/plugins/ParcelCSSMinifyPlugin.js +3 -2
- package/dist/plugins/RuntimePublicPathPlugin.js +1 -1
- package/dist/schema.js +4 -4
- package/dist/server/server.js +5 -2
- package/package.json +20 -25
- package/compiled/css-loader/LICENSE +0 -20
- package/compiled/css-loader/api.js +0 -102
- package/compiled/css-loader/getUrl.js +0 -29
- package/compiled/css-loader/index.js +0 -2
- package/compiled/css-loader/noSourceMaps.js +0 -5
- package/compiled/css-loader/package.json +0 -1
- package/compiled/css-loader/sourceMaps.js +0 -22
- package/compiled/express/LICENSE +0 -24
- package/compiled/express/body-parser/index.d.ts +0 -104
- package/compiled/express/connect/index.d.ts +0 -93
- package/compiled/express/express-serve-static-core/index.d.ts +0 -1252
- package/compiled/express/index.d.ts +0 -133
- package/compiled/express/index.js +0 -321
- package/compiled/express/mime/index.d.ts +0 -35
- package/compiled/express/package.json +0 -1
- package/compiled/express/qs/index.d.ts +0 -62
- package/compiled/express/range-parser/index.d.ts +0 -35
- package/compiled/express/serve-static/index.d.ts +0 -108
- package/compiled/less/index.js +0 -31
- package/compiled/less/package.json +0 -1
|
@@ -7,6 +7,7 @@ const {
|
|
|
7
7
|
evalModuleCode,
|
|
8
8
|
AUTO_PUBLIC_PATH,
|
|
9
9
|
ABSOLUTE_PUBLIC_PATH,
|
|
10
|
+
BASE_URI,
|
|
10
11
|
SINGLE_DOT_PATH_SEGMENT,
|
|
11
12
|
stringifyRequest
|
|
12
13
|
} = require("./utils");
|
|
@@ -261,7 +262,8 @@ function pitch(request) {
|
|
|
261
262
|
layer: options.layer,
|
|
262
263
|
publicPath:
|
|
263
264
|
/** @type {string} */
|
|
264
|
-
publicPathForExtract
|
|
265
|
+
publicPathForExtract,
|
|
266
|
+
baseUri: `${BASE_URI}/`
|
|
265
267
|
},
|
|
266
268
|
/**
|
|
267
269
|
* @param {Error | null | undefined} error
|
|
@@ -97,6 +97,7 @@ function compareModulesByIdentifier(a, b) {
|
|
|
97
97
|
const MODULE_TYPE = "css/mini-extract";
|
|
98
98
|
const AUTO_PUBLIC_PATH = "__mini_css_extract_plugin_public_path_auto__";
|
|
99
99
|
const ABSOLUTE_PUBLIC_PATH = "webpack:///mini-css-extract-plugin/";
|
|
100
|
+
const BASE_URI = "webpack://";
|
|
100
101
|
const SINGLE_DOT_PATH_SEGMENT = "__mini_css_extract_plugin_single_dot_path_segment__";
|
|
101
102
|
/**
|
|
102
103
|
* @param {string} str
|
|
@@ -207,6 +208,7 @@ module.exports = {
|
|
|
207
208
|
MODULE_TYPE,
|
|
208
209
|
AUTO_PUBLIC_PATH,
|
|
209
210
|
ABSOLUTE_PUBLIC_PATH,
|
|
211
|
+
BASE_URI,
|
|
210
212
|
SINGLE_DOT_PATH_SEGMENT,
|
|
211
213
|
stringifyRequest,
|
|
212
214
|
getUndoPath
|