|
- const { VueLoaderPlugin } = require('vue-loader')
- const path = require('path');
-
- module.exports = {
- entry: './main.js',
- output: {
- path: path.resolve(__dirname, 'assets'),
- filename: 'app.js'
- },
- module: {
- rules: [
- {test: /\.vue$/, use: 'vue-loader'},
- {test: /\.css$/, use: 'css-loader'}
- ]
- },
- devServer: {
- static: './assets',
- proxy: {
- '*': {target: 'http://localhost:8001',
- secure: false,
- changeOrigin: true
- }
- }
- },
- // Required for also applying rules to sections of SFC
- plugins: [new VueLoaderPlugin()],
- };
|