stwilz
stwilz

Reputation: 2397

How do I compile an seperate JS file with the Vue CLI?

I'm building a Vue application via the Vue CLI and I want to compile a stand alone JS file as well as the Vue solution.

What I want to see compiled is...

`-- dist
    |-- js
    |   |-- index.js
    |   |-- sdk.js
    |   `-- chunk-vendors.js
    |-- index.css
    |-- favicon.ico
    `-- index.html

Thanks!

Upvotes: 0

Views: 101

Answers (1)

Nir Amir
Nir Amir

Reputation: 130

You should run in terminal npm run build for compile the project and you will get dist folder with index.html and main.js.

Upvotes: 1

Related Questions