quasarframework / quasar-cli

[DEPRECATED, <= 0.17) Quasar Framework - CLI
https://quasar.dev
MIT License
202 stars 50 forks source link

Command quasar build generating empty css files #212

Closed vilsonei closed 5 years ago

vilsonei commented 5 years ago

Software version

OS: Windows 10 Node: 9.4.0 NPM: 6.4.1

Any other software related to your bug: When executing the quasar command build in quasar-cli version 0.17.22 is generating empty files in the css folder. These empty files are generating errors on some java servers, for example the jetty embedded in SpringBoot is generating error 404 (file not found). Is there a possibility to remove these empty files optimizing the final build?

rstoenescu commented 5 years ago

Hi,

It generates whatever your vue files style section (and other css files you are injecting) contain. Webpack generates a css file even if there's one empty <style></style> section in a .vue file, which is your case here.

vilsonei commented 5 years ago

Oi,

Ele gera qualquer seção do estilo dos arquivos vue (e outros arquivos css que você está injetando). O Webpack gera um arquivo css mesmo se houver uma <style></style>seção vazia em um .vuearquivo, que é o seu caso aqui.

Thanks