2018-06-08 10:52:27 +03:00
|
|
|
const path = require('path')
|
|
|
|
const { VueLoaderPlugin } = require('vue-loader');
|
|
|
|
|
|
|
|
module.exports = {
|
2018-06-20 11:02:04 +03:00
|
|
|
entry: path.join(__dirname, 'src', 'main.js'),
|
2018-06-08 10:52:27 +03:00
|
|
|
output: {
|
2018-06-20 11:02:04 +03:00
|
|
|
path: path.resolve(__dirname, './js'),
|
2018-06-08 10:52:27 +03:00
|
|
|
publicPath: '/js',
|
|
|
|
filename: 'oauth2.js'
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.vue$/,
|
|
|
|
loader: 'vue-loader',
|
2019-02-11 21:41:00 +03:00
|
|
|
options: {
|
|
|
|
hotReload: false
|
|
|
|
}
|
2018-12-07 22:03:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
use: ['vue-style-loader', 'css-loader']
|
|
|
|
},
|
2018-06-08 10:52:27 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new VueLoaderPlugin()
|
|
|
|
],
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'vue$': 'vue/dist/vue.esm.js'
|
|
|
|
},
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
|
|
|
}
|
|
|
|
}
|