3

I know there is a GRUNT-BOWER plugin which automatically includes the BOWER dependencies into index.html file through tags every time you install any new bower package.

Is there any similar tool which automatically Injects / includes the NPM dependencies into index.html ?

FYI the project is a VUE-CLI WEBPACK project. Can this be achieved through WEBPACK or do i need a dedicated build tool for doing it ?

1 Answer 1

1

If you're using already using webpack you can have a look at html-webpack-plugin. It will create a .html file with your bundles added as script tags.

html-webpack-plugin in conjunction with creating a vendor bundle should help with this problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.