libresign/webpack.config.js
Vinicius Reis a0b3cd7d7b
🏗️ remove yarn and use npm
npm is the default tool from netcloud core, it make ease to use nextcloud packages

- update dependencies
- simplify builds
2022-08-04 20:07:53 -03:00

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)