const path = require("path");
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
entry: "./src/regl_index.js",
output: {
filename: "main.js",
path: path.resolve(__dirname, "docs")
},
module: {
rules: [
{
test: /\.(png|jpg|gif|bin)$/,
use: [
{
loader: 'file-loader',
options: {},
},
],
},
{
test: /\.json$/,
type: 'javascript/auto',
use: [
{
loader: 'file-loader',
options: {},
},
],
},
],
},
plugins: [
new HtmlWebpackPlugin({ template: "src/index.html" })
],
devtool: "source-map",
devServer: {
watchOptions: {
ignored: /node_modules/
}
}
};