fix(webpack): add css, sass, scss to asset patterns to transpile (#4375)

This commit is contained in:
Daniel Roe 2022-04-15 11:58:22 +01:00 committed by GitHub
parent 54827eea2e
commit 7fb29b3a6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ import { WebpackConfigContext, applyPresets, getWebpackConfig } from '../utils/c
import { nuxt } from '../presets/nuxt'
import { node } from '../presets/node'
const assetPattern = /\.(png|jpe?g|gif|svg|woff2?|eot|ttf|otf|webp|webm|mp4|ogv)(\?.*)?$/i
const assetPattern = /\.(css|s[ca]ss|png|jpe?g|gif|svg|woff2?|eot|ttf|otf|webp|webm|mp4|ogv)(\?.*)?$/i
export function server (ctx: WebpackConfigContext) {
ctx.name = 'server'