Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit aca851c

Browse files
authored
fix(Vue): apply style changes with HMR (#763)
* 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 a9402ec commit aca851c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎templates/webpack.vue.js‎

Lines changed: 3 additions & 3 deletions
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: newRegExp(entryPath+".(js|ts)"),
154154
use: [
155155
// Require all Android app components
156156
platform === "android" && {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /