1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-05-10 01:34:04 +02:00
Nextcloud-News/js/webpack.config.js
Tucker McKnight 8809bb2c56 Add Vue and ng-vue packages
Also adds related parts for compiling Vue components
into the existing Javascript bundle.

Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
2021-07-19 14:58:49 +02:00

22 lines
387 B
JavaScript

const path = require('path');
const { VueLoaderPlugin } = require('vue-loader');
module.exports = {
entry: './app/VueComponents',
output: {
path: path.resolve(__dirname, '.'),
filename: 'webpacked_vue_components.js',
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
},
]
},
plugins: [
new VueLoaderPlugin()
]
}