summaryrefslogtreecommitdiffstats
path: root/js/webpack.config.js
diff options
context:
space:
mode:
authorTucker McKnight <tucker.mcknight@gmail.com>2021-07-03 15:34:11 -0600
committerBenjamin Brahmer <info@b-brahmer.de>2021-07-19 14:58:49 +0200
commit8809bb2c560c08fac4b099edaa32b23bd103725d (patch)
tree20f3824328f23935af20da33dada5208cc055f8b /js/webpack.config.js
parent2b9c45df4080be1ab730de6f532d10dab364dd90 (diff)
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>
Diffstat (limited to 'js/webpack.config.js')
-rw-r--r--js/webpack.config.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/webpack.config.js b/js/webpack.config.js
new file mode 100644
index 000000000..498ed88b0
--- /dev/null
+++ b/js/webpack.config.js
@@ -0,0 +1,21 @@
+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()
+ ]
+}