text: var path = require('path')
  var ExtractTextWebpackPlugin = require('extract-text-webpack-plugin')
  
  module.exports = {
      entry: {
          app: './src/app-usable.js'
      },
  
      output: {
          path: path.resolve(__dirname, 'dist'),
          publicPath: './dist/',
          filename: '[name].bundle.js',
          chunkFilename: '[name].bundle.js'
      },
  
      module: {
          rules: [
              {
                  test: /\.css$/,
                  use: [
                      {   
                          loader: 'style-loader',
                          // css transform 的使用
                          options: {
                              singleton: true,
                              transform: './css.transform.js'
                          }
                      },
                      {
                          loader: 'css-loader'
                      }
                  ]
              }
          ]
      },
  
      plugins: [
          new ExtractTextWebpackPlugin({
              filename: '[name].min.css',
              allChunks: false
          })
      ]
  }