mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-21 01:13:37 +08:00
6674363114
Update electron, wintersky, molang Rename EmptyDialog to ShapelessDialog
36 lines
793 B
JavaScript
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}"`
|
|
})
|
|
]
|
|
}
|