mirror of https://github.com/nextcloud/contacts
20 lines
597 B
JavaScript
20 lines
597 B
JavaScript
const path = require('path')
|
|
const webpack = require('webpack')
|
|
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
|
|
|
webpackConfig.entry['files-action'] = path.join(__dirname, 'src', 'files-action.js')
|
|
webpackConfig.entry['admin-settings'] = path.join(__dirname, 'src', 'admin-settings.js')
|
|
webpackConfig.plugins.push(...[
|
|
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
|
])
|
|
|
|
webpackConfig.module.rules.push({
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: /node_modules/,
|
|
})
|
|
|
|
webpackConfig.resolve.extensions = ['.js', '.vue', '.ts', '.tsx']
|
|
|
|
module.exports = webpackConfig
|