D
D
dk-web2019-06-14 20:17:11
Vue.js
dk-web, 2019-06-14 20:17:11

How to get rid of thousands of style lines in nuxt project?

Good day. When looking at the html source code, the lines start... with 18521.
Before that, 17000 lines are about styles-styles and styles ...
Shouldn't this be assembled out of the box into a conditional app.css?
This is the first time I've encountered such nonsense.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
grinat, 2019-06-14
@grinat

To do this, you need to install some kind of css extract plugin for the webpack, then the styles will be pulled out. By default, it is already there, maybe someone turned it off, it happens that these plugins break the layout if there are jambs in the styles.

D
dk-web, 2019-06-14
@dk-web

Partially solved by adding to nuxt config

build {
extractCSS: true 
}

500 lines left)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question