diff options
author | Tucker McKnight <tucker.mcknight@gmail.com> | 2021-07-03 15:34:11 -0600 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2021-07-19 14:58:49 +0200 |
commit | 8809bb2c560c08fac4b099edaa32b23bd103725d (patch) | |
tree | 20f3824328f23935af20da33dada5208cc055f8b /js/webpack.config.js | |
parent | 2b9c45df4080be1ab730de6f532d10dab364dd90 (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.js | 21 |
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() + ] +} |