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$/,
|
2019-02-16 17:03:44 +03:00
|
|
|
loader: 'vue-loader'
|
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']
|
|
|
|
}
|
|
|
|
}
|