summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/js-src/webpack.common.js
blob: 0cd451893ed57a59cdac092f07c109194bb42dc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const path = require('path')
const { VueLoaderPlugin } = require('vue-loader');

module.exports = {
	entry: './js-src/init.js',
  output: {
		path: path.resolve(__dirname, '../js'),
		publicPath: '/',
		filename: 'merged.js'
  },
  module: {
    rules: [
      {
        test: /\.vue$/,
        loader: 'vue-loader',
      }
    ]
  },
  plugins: [
    new VueLoaderPlugin()
  ],
  resolve: {
    alias: {
      'vue$': 'vue/dist/vue.esm.js'
    },
    extensions: ['*', '.js', '.vue', '.json']
  }
}