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

Commit

Permalink
fix(Vue): apply style changes with HMR (#763) (#777)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
SvetoslavTsenov authored Jan 28, 2019
1 parent be965ec commit 8ee1880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/webpack.vue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { relative, resolve } = require("path");
const { relative, resolve, sep } = require("path");

const webpack = require("webpack");
const CleanWebpackPlugin = require("clean-webpack-plugin");
Expand Down Expand Up @@ -56,7 +56,7 @@ module.exports = env => {
const appResourcesFullPath = resolve(projectRoot, appResourcesPath);

const entryModule = nsWebpack.getEntryModule(appFullPath);
const entryPath = resolve(appFullPath, entryModule);
const entryPath = `.${sep}${entryModule}`;
console.log(`Bundling application for entryPath ${entryPath}...`);

const config = {
Expand Down Expand Up @@ -150,7 +150,7 @@ module.exports = env => {
},
module: {
rules: [{
test: entryPath,
test: new RegExp(entryPath + ".(js|ts)"),
use: [
// Require all Android app components
platform === "android" && {
Expand Down

0 comments on commit 8ee1880

Please sign in to comment.