Skip to content

Instantly share code, notes, and snippets.

@lmiller1990
Created January 18, 2018 17:08
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 lmiller1990/9f0ccb4ac46ec7e77ee3cb887d62bf40 to your computer and use it in GitHub Desktop.
Save lmiller1990/9f0ccb4ac46ec7e77ee3cb887d62bf40 to your computer and use it in GitHub Desktop.
const path = require(‘path’)
const genDefaultConfig = require(‘@storybook/vue/dist/server/config/defaults/webpack.config.js’)
module.exports = (baseConfig, env) => {
const config = genDefaultConfig(baseConfig, env)
function resolve(dir) {
return path.join(__dirname, ‘..’, dir)
}
config.resolve = {
extensions: [‘.js’, ‘.vue’, ‘.json’],
alias: {
vue$: ‘vue/dist/vue.esm.js’,
‘@’: resolve(‘src’),
},
}
return config
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment