modern/webpack.config.js
2021-01-17 17:17:19 +01:00

29 lines
538 B
JavaScript
Executable File

const path = require("path")
module.exports = {
entry: "./app.js",
mode: "development",
output: {
filename: "bundle.js"
},
module: {
rules: [{
test: /\.(glsl|vs|fs)$/,
loader: 'shader-loader',
options: {
glsl: {
chunkPath: path.resolve("./three/src/renderers/shaders/ShaderChunk")
}
}
}, {
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
}
}]
},
stats: {
colors: true
},
devtool: "source-map",
};