Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 8ee1880

Browse files
fix(Vue): apply style changes with HMR (#763) (#777)
* fix(Vue): apply style changes with HMR The `bundle-config-loader` executes for `entryPath` with all extensions: `css`, `js`, `ts`, `scss`, etc. Limit only to `js` and `ts`. Fixes #762. * Revert "fix(Vue): resolve full path for entry module (#744)" This reverts commit 4d31ea0. It causes #762. * fix(Vue): entry module path Fixes #742, fixes #762.
1 parent be965ec commit 8ee1880

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: templates/webpack.vue.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { relative, resolve } = require("path");
1+
const { relative, resolve, sep } = require("path");
22

33
const webpack = require("webpack");
44
const CleanWebpackPlugin = require("clean-webpack-plugin");
@@ -56,7 +56,7 @@ module.exports = env => {
5656
const appResourcesFullPath = resolve(projectRoot, appResourcesPath);
5757

5858
const entryModule = nsWebpack.getEntryModule(appFullPath);
59-
const entryPath = resolve(appFullPath, entryModule);
59+
const entryPath = `.${sep}${entryModule}`;
6060
console.log(`Bundling application for entryPath ${entryPath}...`);
6161

6262
const config = {
@@ -150,7 +150,7 @@ module.exports = env => {
150150
},
151151
module: {
152152
rules: [{
153-
test: entryPath,
153+
test: new RegExp(entryPath + ".(js|ts)"),
154154
use: [
155155
// Require all Android app components
156156
platform === "android" && {

0 commit comments

Comments
 (0)