Skip to content

Instantly share code, notes, and snippets.

@ovlb
Created January 25, 2019 17:48
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/33d5f2800138bece113cc0d2ffec3e04 to your computer and use it in GitHub Desktop.
Save ovlb/33d5f2800138bece113cc0d2ffec3e04 to your computer and use it in GitHub Desktop.
Vue Open Source: Webpack Config Entry
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