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

fix(Vue): apply style changes with HMR #763

Merged
merged 3 commits into from
Jan 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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