Created
January 18, 2018 17:08
-
-
Save lmiller1990/9f0ccb4ac46ec7e77ee3cb887d62bf40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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