2018-05-18 17:39:34 +03:00
|
|
|
const path = require('path')
|
2018-03-09 19:46:34 +03:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: './src/main.js',
|
|
|
|
output: {
|
2018-05-18 18:04:21 +03:00
|
|
|
path: path.resolve(__dirname, './js'),
|
2018-03-09 19:46:34 +03:00
|
|
|
publicPath: '/dist/',
|
2018-05-18 18:04:21 +03:00
|
|
|
filename: 'main.js'
|
2018-03-09 19:46:34 +03:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
use: [
|
|
|
|
'vue-style-loader',
|
|
|
|
'css-loader'
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.scss$/,
|
|
|
|
use: [
|
|
|
|
'vue-style-loader',
|
|
|
|
'css-loader',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.vue$/,
|
|
|
|
loader: 'vue-loader',
|
|
|
|
options: {
|
2018-05-23 14:04:49 +03:00
|
|
|
loaders: {}
|
2018-03-09 19:46:34 +03:00
|
|
|
// other vue-loader options go here
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
exclude: /node_modules/
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.(png|jpg|gif|svg)$/,
|
|
|
|
loader: 'file-loader',
|
|
|
|
options: {
|
|
|
|
name: '[name].[ext]?[hash]'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'vue$': 'vue/dist/vue.esm.js'
|
|
|
|
},
|
|
|
|
extensions: ['*', '.js', '.vue', '.json']
|
2018-05-18 17:39:34 +03:00
|
|
|
}
|
2018-03-09 19:46:34 +03:00
|
|
|
}
|