const { defineConfig } = require('@vue/cli-service') const path = require('path') function resolve (dir) { return path.join(__dirname, dir) } module.exports = defineConfig({ transpileDependencies: true, pages: { index: { entry: 'examples/main.js', template: 'public/index.html', filename: 'index.html' } }, css: { extract: false }, chainWebpack: config => { config.resolve.alias .set('@public', resolve('public')) config.module .rule('js') .include .add('/packages') .end() .use('babel') .loader('babel-loader') .tap(options => { return options }) } })