19 lines
473 B
JavaScript
19 lines
473 B
JavaScript
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||
|
const VueLoaderPlugin = require('vue-loader/lib/plugin');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: './src/main.js',
|
||
|
module: {
|
||
|
rules: [
|
||
|
{ test: /\.js$/, use: 'babel-loader' },
|
||
|
{ test: /\.vue$/, use: 'vue-loader' },
|
||
|
{ test: /\.css$/, use: ['vue-style-loader', 'css-loader']},
|
||
|
]
|
||
|
},
|
||
|
plugins: [
|
||
|
new HtmlWebpackPlugin({
|
||
|
template: './src/index.html',
|
||
|
}),
|
||
|
new VueLoaderPlugin(),
|
||
|
]
|
||
|
};
|