mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
npm is the default tool from netcloud core, it make ease to use nextcloud packages - update dependencies - simplify builds
30 lines
778 B
JavaScript
30 lines
778 B
JavaScript
const { merge } = require('webpack-merge')
|
|
const path = require('path')
|
|
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
|
|
|
const config = {
|
|
entry: {
|
|
tab: path.resolve(path.join('src', 'tab.js')),
|
|
settings: path.resolve(path.join('src', 'settings.js')),
|
|
external: path.resolve(path.join('src', 'external.js')),
|
|
validation: path.resolve(path.join('src', 'validation.js')),
|
|
},
|
|
optimization: process.env.NODE_ENV === 'production'
|
|
? { chunkIds: 'deterministic' }
|
|
: {},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.(ttf|otf|eot|woff|woff2)$/,
|
|
use: {
|
|
loader: 'file-loader',
|
|
options: {
|
|
name: 'fonts/[name].[ext]',
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}
|
|
|
|
module.exports = merge(webpackConfig, config)
|