2020-07-24 08:59:32 +00:00
|
|
|
const path = require('path')
|
|
|
|
const webpack = require('webpack')
|
|
|
|
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
|
|
|
|
2020-09-05 11:40:29 +00:00
|
|
|
webpackConfig.entry['files-action'] = path.join(__dirname, 'src', 'files-action.js')
|
2020-10-02 16:21:22 +00:00
|
|
|
webpackConfig.entry['admin-settings'] = path.join(__dirname, 'src', 'admin-settings.js')
|
2021-03-29 09:00:56 +00:00
|
|
|
webpackConfig.plugins.push(...[
|
2022-01-25 14:14:00 +00:00
|
|
|
new webpack.IgnorePlugin({
|
|
|
|
resourceRegExp: /^\.\/locale$/,
|
|
|
|
contextRegExp: /moment$/,
|
|
|
|
}),
|
2021-03-29 09:00:56 +00:00
|
|
|
])
|
2020-07-24 08:59:32 +00:00
|
|
|
|
2021-03-15 10:48:15 +00:00
|
|
|
webpackConfig.module.rules.push({
|
|
|
|
test: /\.tsx?$/,
|
|
|
|
use: 'ts-loader',
|
|
|
|
exclude: /node_modules/,
|
|
|
|
})
|
|
|
|
|
|
|
|
webpackConfig.resolve.extensions = ['.js', '.vue', '.ts', '.tsx']
|
|
|
|
|
2020-07-24 08:59:32 +00:00
|
|
|
module.exports = webpackConfig
|