text: var path = require('path')
  var vueLoaderConfig = require('./vue-loader.conf')
  var utils = require('./utils')
  
  function resolve (dir) {
    return path.join(__dirname, '..', dir)
  }
  
  module.exports = {
    entry: {
      'vue-color': './src/index.js'
    },
    output: {
      filename: './dist/[name].js',
      library: 'VueColor',
      libraryTarget: 'umd'
    },
    module: {
      rules: [
        {
          test: /\.vue$/,
          loader: 'vue-loader',
          options: vueLoaderConfig
        },
        {
          test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
          loader: 'url-loader',
          query: {
            limit: false,
            quality: 90,
            name: utils.assetsPath('img/[name].[hash:7].[ext]')
          }
        },
        {
          test: /\.js$/,
          loader: 'babel-loader',
          include: [resolve('src')],
          exclude: /node_modules/
        }
      ]
    }
  }
  