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