Update mini-css-extract-plugin
This commit is contained in:
parent
e7a8258ac0
commit
a9fb563c01
@ -89,7 +89,7 @@
|
|||||||
"eslint-plugin-vue": "7.0.1",
|
"eslint-plugin-vue": "7.0.1",
|
||||||
"fuzzy": "0.1.3",
|
"fuzzy": "0.1.3",
|
||||||
"husky": "4.3.0",
|
"husky": "4.3.0",
|
||||||
"mini-css-extract-plugin": "0.11.2",
|
"mini-css-extract-plugin": "1.0.0",
|
||||||
"mocha": "8.1.3",
|
"mocha": "8.1.3",
|
||||||
"mousetrap": "1.6.5",
|
"mousetrap": "1.6.5",
|
||||||
"normalize.css": "8.0.1",
|
"normalize.css": "8.0.1",
|
||||||
|
@ -13,19 +13,6 @@ module.exports = (app) => {
|
|||||||
"webpack-hot-middleware/client?path=storage/__webpack_hmr"
|
"webpack-hot-middleware/client?path=storage/__webpack_hmr"
|
||||||
);
|
);
|
||||||
|
|
||||||
// Enable hot module reload support in mini-css-extract-plugin
|
|
||||||
for (const rule of webpackConfig.module.rules) {
|
|
||||||
if (!Array.isArray(rule.use)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const use of rule.use) {
|
|
||||||
if (use.options && typeof use.options.hmr !== "undefined") {
|
|
||||||
use.options.hmr = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const compiler = webpack(webpackConfig);
|
const compiler = webpack(webpackConfig);
|
||||||
|
|
||||||
app.use(
|
app.use(
|
||||||
|
@ -41,7 +41,7 @@ const config = {
|
|||||||
{
|
{
|
||||||
loader: MiniCssExtractPlugin.loader,
|
loader: MiniCssExtractPlugin.loader,
|
||||||
options: {
|
options: {
|
||||||
hmr: false,
|
esModule: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
12
yarn.lock
12
yarn.lock
@ -5722,14 +5722,14 @@ min-indent@^1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
|
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
|
||||||
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==
|
integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==
|
||||||
|
|
||||||
mini-css-extract-plugin@0.11.2:
|
mini-css-extract-plugin@1.0.0:
|
||||||
version "0.11.2"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-0.11.2.tgz#e3af4d5e04fbcaaf11838ab230510073060b37bf"
|
resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-1.0.0.tgz#4afb39f3d97b1b92eacb1ac45025416089f831bd"
|
||||||
integrity sha512-h2LknfX4U1kScXxH8xE9LCOqT5B+068EAj36qicMb8l4dqdJoyHcmWmpd+ueyZfgu/POvIn+teoUnTtei2ikug==
|
integrity sha512-IsmrPv1nkdSUtFCDrAsuv5kg0k/27sLxfXqSz8vLjnbRKrNgoRdQrUNA4MppawvD+GHLkNP6L1P93Bw50ALkbg==
|
||||||
dependencies:
|
dependencies:
|
||||||
loader-utils "^1.1.0"
|
loader-utils "^2.0.0"
|
||||||
normalize-url "1.9.1"
|
normalize-url "1.9.1"
|
||||||
schema-utils "^1.0.0"
|
schema-utils "^3.0.0"
|
||||||
webpack-sources "^1.1.0"
|
webpack-sources "^1.1.0"
|
||||||
|
|
||||||
minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:
|
minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:
|
||||||
|
Loading…
Reference in New Issue
Block a user