Closed xieyuheng closed 2 years ago
Should be a question for laravel-mix to disable css-loader for SSR build.
Some notes, to help people who meet the same problem ~
We should ignore CSS during SSR build.
According to laravel-mix's source code: https://github.com/laravel-mix/laravel-mix/blob/master/src/components/Vue.js
There are two options:
(1) Setting useVueStyleLoader
to true
.
(2) Setting extractStyles
to true
or string
representing an output path.
Example error messages: