const base = require('./webpack.config.js')
const { merge } = require('webpack-merge')

module.exports = merge(base, {
  mode: 'production',
  plugins: [
  ],
  module: {
    rules: [{
      test: /\.scss$/,
      use: [{
        loader: "style-loader" // 将 JS 字符串生成为 style 节点
      }, {
        loader: "css-loader" // 将 CSS 转化成 CommonJS 模块
      }, {
        loader: "sass-loader" // 将 Sass 编译成 CSS
      }]
    }]
  }
});