P
P
pegas2018-12-17 11:41:15
JavaScript
pegas, 2018-12-17 11:41:15

How to compile the final file when developing with Vue?

I use single-file components, in each .vue component I import css. As a result, all styles from all components are compiled as a tag <style>in body. I need everything to be in one file. I use vue-loader in webpack.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex, 2018-12-17
@1PeGaS

github.com/webpack-contrib/mini-css-extract-plugin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question