@xh/hoist-dev-utils 12.1.1 → 12.2.0
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/configureWebpack.js +4 -2
- package/package.json +1 -1
package/configureWebpack.js
CHANGED
|
@@ -527,7 +527,9 @@ async function configureWebpack(env) {
|
|
|
527
527
|
// 3) Production builds use MiniCssExtractPlugin to break built styles into dedicated output files
|
|
528
528
|
// (vs. tags injected into DOM) for production builds. Note relies on MiniCssExtractPlugin being
|
|
529
529
|
// called within the prod plugins section.
|
|
530
|
-
prodBuild
|
|
530
|
+
prodBuild
|
|
531
|
+
? MiniCssExtractPlugin.loader
|
|
532
|
+
: {loader: 'style-loader', options: {esModule: false}},
|
|
531
533
|
|
|
532
534
|
// 2) Resolve @imports within CSS, similar to module support in JS.
|
|
533
535
|
{
|
|
@@ -716,7 +718,7 @@ async function configureWebpack(env) {
|
|
|
716
718
|
: {
|
|
717
719
|
host: devHost,
|
|
718
720
|
port: devWebpackPort,
|
|
719
|
-
hot:
|
|
721
|
+
hot: true, // Hot module replacement is only supported for SCSS. JS/TS files trigger live reload.
|
|
720
722
|
client: {overlay: devClientOverlay},
|
|
721
723
|
server:
|
|
722
724
|
devHttps === true
|