blockbench/webpack.config.js
JannisX11 6674363114 Bump version to 4.6 beta 0
Update electron, wintersky, molang
Rename EmptyDialog to ShapelessDialog
2022-12-22 13:22:30 +01:00

36 lines
793 B
JavaScript

const PathModule = require('path')
const {DefinePlugin} = require('webpack')
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'
},
{
test: /\.bbtheme$/,
type: 'json'
}
]
},
plugins: [
new DefinePlugin({
BBVERSION: `"${require('./package.json').version}"`
})
]
}