Skip to content

Instantly share code, notes, and snippets.

@ovlb
Created January 25, 2019 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ovlb/59bbdde27dcd8d114b6e7710bf6f8b6b to your computer and use it in GitHub Desktop.
Save ovlb/59bbdde27dcd8d114b6e7710bf6f8b6b to your computer and use it in GitHub Desktop.
// vue.config.js
const path = require('path')
module.exports = {
outputDir: path.resolve(__dirname, 'dist-demo'),
chainWebpack: config => {
config
.entry('app')
.clear()
.add('./demo/main.js')
config.resolve.alias
.set('Styles', path.resolve(__dirname, 'src/styles'))
.set('Demo', path.resolve(__dirname, 'demo'))
.set('Source', path.resolve(__dirname, 'src'))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment