Skip to content

Instantly share code, notes, and snippets.

@ovlb
Created January 25, 2019 17:51
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/1d16fa45212d911b1035390d72c3aa2e to your computer and use it in GitHub Desktop.
Save ovlb/1d16fa45212d911b1035390d72c3aa2e to your computer and use it in GitHub Desktop.
Vue Open Source: Webpack Resolve Alias
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