diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-09-12 15:42:18 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-09-12 17:18:06 +0200 |
commit | 184de87c8604591337546bef31c9a3ef494cf93c (patch) | |
tree | 50ee5b02c795e4bea442702038047bedd3ac4810 /webpack.common.js | |
parent | d129f65f3716704b05685a6b9fe3e390d40843c8 (diff) |
Update nc vue components to v7
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'webpack.common.js')
-rw-r--r-- | webpack.common.js | 62 |
1 files changed, 9 insertions, 53 deletions
diff --git a/webpack.common.js b/webpack.common.js index 3f7ba387..19793810 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -1,56 +1,12 @@ +// SPDX-FileCopyrigthText: 2022 Carl Schwan <carl@carlschwan.eu> +// SPDX-License-Identifier: AGPL-3.0-or-later + const path = require('path'); -const VueLoaderPlugin = require('vue-loader/lib/plugin'); +const webpackConfig = require('@nextcloud/webpack-vue-config') +webpackConfig.entry = { + social: path.join(__dirname, 'src', 'main.js'), + ostatus: path.join(__dirname, 'src', 'ostatus.js'), +} -module.exports = { - entry: { - social: path.join(__dirname, 'src', 'main.js'), - ostatus: path.join(__dirname, 'src', 'ostatus.js'), - }, - output: { - path: path.resolve(__dirname, './js'), - publicPath: '/js/', - filename: '[name].js', - chunkFilename: '[name].[chunkhash].js' - }, - module: { - rules: [ - { - test: /\.css$/, - use: [ - 'style-loader', - 'css-loader' - ] - }, - { - test: /\.scss$/, - use: [ - 'style-loader', - 'css-loader', - 'sass-loader' - ] - }, - { - test: /\.vue$/, - loader: 'vue-loader' - }, - { - test: /\.js$/, - loader: 'babel-loader', - exclude: /node_modules/ - }, - { - test: /\.(png|jpg|gif|svg)$/, - loader: 'file-loader', - options: { - name: '[name].[ext]?[hash]' - } - } - ] - }, - plugins: [new VueLoaderPlugin()], - resolve: { - extensions: ['*', '.js', '.vue'], - symlinks: false - } -}; +module.exports = webpackConfig |