Node.js/nuxt/css module:修订间差异
来自康健生活
| 第3行: | 第3行: | ||
配置文件 | 配置文件 | ||
{{hc|nuxt.config.js|<syntaxhighlight lang="javascript"> | {{hc|nuxt.config.js|<syntaxhighlight lang="javascript"> | ||
css: { | build: { | ||
css: { | |||
loaderOptions: { | |||
css: { | |||
localIdentName: '[name]__[local]-[hash:base64:5]', | |||
camelCase: true | |||
} | |||
} | |||
}, | |||
}</syntaxhighlight>}} | |||
或者 | |||
{{hc|nuxt.config.js|<syntaxhighlight lang="javascript"> | |||
{ | |||
loaders:{ | |||
cssModules: { | |||
localIdentName: '[local]_[hash:base64:5]', | |||
camelCase: true | camelCase: true | ||
} | }, | ||
} | sass: { | ||
} | indentedSyntax: true | ||
}, | |||
}, | |||
}</syntaxhighlight>}} | |||