blockbench/webpack.config.js

22 lines
438 B
JavaScript
Raw Normal View History

2021-02-10 05:26:52 +08:00
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'
}
}
]
}
}