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

Webpack dev server won't start with --production #1635

Open
2 of 3 tasks
sergeymorkovkin opened this issue Jun 1, 2019 · 0 comments
Open
2 of 3 tasks

Webpack dev server won't start with --production #1635

sergeymorkovkin opened this issue Jun 1, 2019 · 0 comments

Comments

@sergeymorkovkin
Copy link
Contributor

  • I confirm that this is an issue rather than a question.

Bug report

Steps to reproduce

Use the most primitive Vuepress project, as instructed in guide.

What is expected?

Webpack-dev-server should work with --production flag.

What is actually happening?

Running the vuepress dev ./src command with --production flag fails to start dev-server.

Other relevant information

Running the vuepress dev ./src command doesn't show errors (which is another issue). But there is a cross before the "Client" webpack task. I've debugged and figured out that it's due to webpack output configuration. Following code helps me to bypass this bug:

config.output.filename(isProd() ? 'assets/js/[name].[hash:8].js' : 'assets/js/[name].js');

  • My VuePress version is lower and euqal than 1.0.0-alpha.47:

    • VuePress version: 1.0.0-alpha.48
    • OS: macOS Mojave 10.14.5
    • Node.js version: 11.10.1
    • Browser version: (not applicable)
    • Is this a global or local install? local
    • Which package manager did you use for the install? NPM
    • Does this issue occur when all plugins are disabled? Yes
  • My VuePress version is higher than 1.0.0-alpha.47, the following is the output of npx vuepress info in my VuePress project:

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

1 participant