Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indexPath doesn't work in development mode #4247

Closed
lastlink opened this issue Jul 6, 2019 · 3 comments
Closed

indexPath doesn't work in development mode #4247

lastlink opened this issue Jul 6, 2019 · 3 comments

Comments

@lastlink
Copy link

lastlink commented Jul 6, 2019

Version

3.9.0

Reproduction link

https://github.com/lastlink/pdf-sync-reader-server-ui

Environment info

System:
    OS: Windows 10
    CPU: (4) x64 Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
  Binaries:
    Node: Not Found
    Yarn: 1.16.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: 42.17134.1.0
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0
    @vue/babel-plugin-transform-vue-jsx:  1.0.0
    @vue/babel-preset-app:  3.9.2
    @vue/babel-preset-jsx:  1.0.0
    @vue/babel-sugar-functional-vue:  1.0.0
    @vue/babel-sugar-inject-h:  1.0.0
    @vue/babel-sugar-v-model:  1.0.0
    @vue/babel-sugar-v-on:  1.0.0
    @vue/cli-overlay:  3.9.0
    @vue/cli-plugin-babel: ^3.9.0 => 3.9.2
    @vue/cli-plugin-unit-jest: ^3.9.0 => 3.9.0
    @vue/cli-service: ^3.9.0 => 3.9.2
    @vue/cli-shared-utils:  3.9.0
    @vue/component-compiler-utils:  2.6.0
    @vue/preload-webpack-plugin:  1.1.0
    @vue/test-utils: 1.0.0-beta.29 => 1.0.0-beta.29
    @vue/web-component-wrapper:  1.2.0
    jest-serializer-vue:  2.0.2
    vue: ^2.6.10 => 2.6.10
    vue-hot-reload-api:  2.3.3
    vue-jest:  3.0.4
    vue-loader:  15.7.0
    vue-router: ^3.0.3 => 3.0.7
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.6.10 => 2.6.10
    vue-template-es2015-compiler:  1.9.1
    vuex: ^3.0.1 => 3.1.1
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

Was following this guide https://wildermuth.com/2019/04/08/Using-Vue-CLI-Inside-an-ASP-NET-Core-Project and added an additional command watch.

"scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "test:unit": "vue-cli-service test:unit",
    "watch": "vue-cli-service build --mode development --watch"
  },

// vue.config.js
module.exports = {
    outputDir: "../wwwroot/client-app/",
    filenameHashing: false,
    publicPath: "/client-app/",
    indexPath: "../../Views/Index/Client_App.cshtml"
}

I noticed that with mode development indexPath wasn't used while outputDir was still used. Is this expected behavior? When I changed the command to "watch": "vue-cli-service build --mode production --watch" the watch auto build worked fine.

What is expected?

indexPath is used while in development mode from cli.

What is actually happening?

Ignoring indexPath completely and only using defaults from outputDir.

@lastlink
Copy link
Author

lastlink commented Jul 6, 2019

looks like #4057 may solve this.

@bobspace
Copy link

bobspace commented Jul 17, 2019

My version (3.9.2) still has this issue (and the underlying code that #4057 addresses). When will this be fixed?

sodatea pushed a commit that referenced this issue Jul 18, 2019
@sodatea
Copy link
Member

sodatea commented Jul 18, 2019

3.9.3 published just now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants