mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-12-15 05:01:38 +08:00
30 lines
627 B
JavaScript
30 lines
627 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'
|
|
},
|
|
{
|
|
test: /\.bbtheme$/,
|
|
type: 'json'
|
|
}
|
|
]
|
|
}
|
|
}
|