[Vuejs]-How to make vue + webpack run using direct access through URL locally?

0👍

From the documentation:

All of these are solved by single-file components with a .vue
extension, made possible with build tools such as Webpack or
Browserify.

https://v2.vuejs.org/v2/guide/single-file-components.html

To develop, you’ll need to use webpack, which uses node, so npm run dev command is required.

However, after you’re done with the development (or done for the time being), you can run the production command, which usually is npm run build, then it will compile it to the output dist folder.

You can then copy the files from that folder and use it wherever you want.

Leave a comment