mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-05-10 01:34:04 +02:00

Also adds related parts for compiling Vue components into the existing Javascript bundle. Signed-off-by: Tucker McKnight <tucker.mcknight@gmail.com>
22 lines
387 B
JavaScript
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()
|
|
]
|
|
}
|