text: 'use strict'
  
  const HtmlWebpackPlugin = require('html-webpack-plugin')
  
  const { VueLoaderPlugin } = require('vue-loader')
  
  const path = require("path");
  const _root = path.resolve(__dirname, '..');
  
  function root(args) {
  	args = Array.prototype.slice.call(arguments, 0);
  	return path.join.apply(path, [_root].concat(args));
  }
  
  module.exports = {
  	output: {
  		path: root('build/static'),
  		publicPath: '/',
  		filename: '[name].js'
  	},
  	mode: 'development',
  	entry: [
  		'./frontend/app.js'
  	],
  	module: {
  		rules: [
  			{
  				test: /\.vue$/,
  				use: 'vue-loader'
  			},
  			{
  				test: /\.css$/,
  				use: [ 'style-loader', 'css-loader' ]
  			},
  			{
  				test: /\.svg$/,
  				loader: 'svg-inline-loader'
  			},
  			{
  				test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
  				use: [{
  					loader: 'file-loader',
  					options: {
  						name: '[name].[ext]',
  						outputPath: 'fonts/'
  					}
  				}]
  			}
  		]
  	},
  	plugins: [
  		new VueLoaderPlugin(),
  		new HtmlWebpackPlugin({
  			filename: "./index.html",
  			template: "./frontend/index.html"
  		})
  	]
  }
  
  