mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
refactor: enable lint in storybook
This commit is contained in:
parent
f4a34c5664
commit
55dd9e76e2
@ -3,3 +3,4 @@ node_modules
|
||||
dist
|
||||
.nuxt
|
||||
examples/coffeescript/pages/index.vue
|
||||
!examples/storybook/.storybook
|
||||
|
@ -1,14 +1,13 @@
|
||||
const webpack = require('webpack')
|
||||
const path = require('path')
|
||||
const nxtConf = require('../nuxt.config')
|
||||
const nuxtConf = require('../nuxt.config')
|
||||
|
||||
module.exports = (sBaseConfig, configType, defaultConfig) => {
|
||||
const srcDir = `../${nxtConf.srcDir||''}`
|
||||
const rootDir = `../${nxtConf.rootDir||''}`
|
||||
const srcDir = `../${nuxtConf.srcDir || ''}`
|
||||
const rootDir = `../${nuxtConf.rootDir || ''}`
|
||||
|
||||
Object.assign(defaultConfig.resolve.alias, {
|
||||
'~~': path.resolve(__dirname, rootDir),
|
||||
'~': path.resolve(__dirname, srcDir)
|
||||
'~~': path.resolve(__dirname, rootDir),
|
||||
'~': path.resolve(__dirname, srcDir)
|
||||
})
|
||||
|
||||
return defaultConfig
|
||||
|
Loading…
Reference in New Issue
Block a user