const path = require('path')

module.exports = {
  module: {
    rules: [
      { test: /\.js$/, use: 'babel-loader' },
      { test: /\.vue$/, use: 'vue-loader' }
    ]
  },
  context: __dirname,
  entry: path.resolve(__dirname, 'docs/demo/index.js'),
  output: {
    path: path.resolve(__dirname, 'docs/demo'),
    filename: 'pack.js'
  },
  resolve: {
    extensions: ['.js', '.json', '.vue']
  },
  devServer: {
    contentBase: [path.resolve(__dirname, 'docs/demo'), __dirname]
  }
}
