blockbench/webpack.config.js
2021-06-16 23:31:02 +02:00

26 lines
533 B
JavaScript

const PathModule = require('path')
module.exports = {
mode: 'production',
target: 'node',
entry: './src/index.js',
output: {
filename: 'bundle.js',
path: PathModule.resolve(__dirname, 'js', 'webpack')
},
module: {
rules: [
{
test: /\.(jpg|png)$/,
use: {
loader: 'url-loader'
}
},
{
test: /\.bbkeymap$/,
type: 'json'
}
]
}
}