|
var path = require('path');
|
|
var webpack = require('webpack');
|
|
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
|
|
|
module.exports = {
|
|
entry: {
|
|
|
|
app: './src/app.js'
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
|
|
|
|
}
|
|
},
|
|
output: {
|
|
filename: '[name].js',
|
|
|
|
path: path.resolve(__dirname, '.')
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/,
|
|
use: [
|
|
'style-loader',
|
|
'css-loader'
|
|
]
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
]
|
|
},
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
title: "gl-avatar-three-js",
|
|
template: "html/test-template.html"
|
|
})
|
|
],
|
|
devServer: {
|
|
|
|
contentBase: __dirname,
|
|
port: 7000
|
|
}
|
|
}; |