Node.js/nuxt/css module:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第2行: 第2行:


配置文件
配置文件
{{hc|webpack.config.js|<syntaxhighlight lang="javascript">
{{hc|nuxt.config.js|<syntaxhighlight lang="javascript">
{
css: {
test: /\.css$/,
  loaderOptions: {
loader: 'style!css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]'
    css: {
}</syntaxhighlight>
      localIdentName: '[name]__[local]-[hash:base64:5]',
      camelCase: true
    }
  }
},</syntaxhighlight>}}