2018-03-17 23:57:43 +01:00
|
|
|
const
|
|
|
|
path = require('path'),
|
|
|
|
webpack = require('webpack'),
|
|
|
|
HtmlWebpackPlugin = require('html-webpack-plugin');
|
2018-03-21 00:29:00 +01:00
|
|
|
|
2018-03-17 23:57:43 +01:00
|
|
|
const vueLoader = {
|
|
|
|
test: /\.(vue)$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
loader: 'vue-loader'
|
2018-03-21 00:29:00 +01:00
|
|
|
};
|
2018-03-17 23:57:43 +01:00
|
|
|
|
|
|
|
const scssLoader = {
|
|
|
|
test: /\.(css|scss)$/,
|
|
|
|
loader: ['css-loader', 'sass-loader']
|
2018-03-21 00:29:00 +01:00
|
|
|
};
|
2018-03-17 23:57:43 +01:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: './src/index.js',
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, 'dist'),
|
|
|
|
filename: 'installer.js'
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
loaders: [vueLoader, scssLoader]
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
vue$: path.resolve('..', 'node_modules', 'vue', 'dist', 'vue.esm.js')
|
|
|
|
}
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new HtmlWebpackPlugin({
|
|
|
|
template: './src/index.html'
|
|
|
|
})
|
|
|
|
]
|
|
|
|
};
|