question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What problem does this feature solve?

Sometimes you don’t want to serve html and other build files with integrated serve command.

Requirements

watch command option needs to take into account vue.config.js’s outputDir or --dest. (I’m guessing this would work out of the box even). I think it’s actually same as running webpack-cli with webpack --watch.

Would you be willing to merge a PR that adds this command / command option?

What does the proposed API look like?

vue-cli-service watch

or (preferably)

vue-cli-service build --watch

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:26 (9 by maintainers)

github_iconTop GitHub Comments

10reactions
meteorlxycommented, Sep 12, 2018

I met two problems with vue-cli-service build --watch --mode development.

  1. Lots of [hash].hot-update.json are being generated:

vue-cli

  1. The assets files are not in the sub directory:

image

dashboard.js is supposed to be put into public/js dir, but it’s in public/ now.


Here’s my vue.config.js:

module.exports = {
  outputDir: 'public',
  
  pages: {
    dashboard: {
      entry: 'client/src/dashboard/app.js',
      template: 'client/public/index.html',
      filename: '../resources/views/dashboard.blade.php',
      chunks: ['chunk-vendors', 'chunk-common', 'dashboard']
    }
  },

  chainWebpack (config) {
    config.resolve
      .alias
        .set('@', path.resolve(__dirname, 'client/src'))
        .end()
  },
}

With version 3.0.3

10reactions
yyx990803commented, May 18, 2018

Sure, we can take a PR for build --watch

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using watch mode - Rush.js
Watch mode for phased commands​. In your command-line.json config file, add the new watchOptions section to each phased command you want to enable....
Read more >
Watch and WatchOptions | webpack
In webpack-dev-server and webpack-dev-middleware watch mode is enabled by default. watchOptions. object. A set of options used to customize watch mode: webpack.
Read more >
Set up and pair your Apple Watch with iPhone
Tap Add Watch, then follow the onscreen instructions. See the Apple Support article Use more than one Apple Watch with your iPhone. To...
Read more >
Set up your watch - Android - Wear OS by Google Help
On your phone, open Wear OS Wear OS by Google . · Next to the connected watch's name, tap the Down arrow Drop...
Read more >
Watch Mode - StealJS
steal-tools includes a watch mode (using the --watch flag in the cli) in its build command (also known as continuous builds).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found