23 lines
517 B
JavaScript
23 lines
517 B
JavaScript
|
const path = require('path')
|
||
|
|
||
|
module.exports = {
|
||
|
mode: 'production',
|
||
|
entry: './lib/app/resources/assets/app/index.js',
|
||
|
output: {
|
||
|
filename: 'app.js',
|
||
|
path: path.resolve(__dirname, 'lib', 'app', 'resources', 'assets'),
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.css$/,
|
||
|
use: ['style-loader', 'css-loader'],
|
||
|
},
|
||
|
{
|
||
|
test: /\.ttf$/,
|
||
|
type: 'asset/resource'
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
}
|