mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(webpack): add css, sass, scss to asset patterns to transpile (#4375)
This commit is contained in:
parent
54827eea2e
commit
7fb29b3a6e
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user