mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
cleanup
This commit is contained in:
parent
b65a0e6e19
commit
500da0804e
@ -44,17 +44,8 @@ module.exports = {
|
||||
** Nuxt.js modules
|
||||
*/
|
||||
modules: [
|
||||
// Doc: https://github.com/nuxt-community/axios-module#usage
|
||||
'@nuxtjs/axios'
|
||||
],
|
||||
|
||||
/*
|
||||
** Axios module configuration
|
||||
*/
|
||||
axios: {
|
||||
// See https://github.com/nuxt-community/axios-module#options
|
||||
},
|
||||
|
||||
/*
|
||||
** Build configuration
|
||||
*/
|
||||
@ -62,23 +53,5 @@ module.exports = {
|
||||
/*
|
||||
** You can extend webpack config here
|
||||
*/
|
||||
extend(config, ctx) {
|
||||
// Run ESLint on save
|
||||
if (ctx.isDev && ctx.isClient) {
|
||||
config.module.rules.push({
|
||||
enforce: 'pre',
|
||||
test: /\.(js|vue)$/,
|
||||
loader: 'eslint-loader',
|
||||
exclude: /(node_modules)/
|
||||
})
|
||||
}
|
||||
if (ctx.isServer) {
|
||||
config.externals = [
|
||||
nodeExternals({
|
||||
whitelist: [/^vuetify/]
|
||||
})
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,14 +9,11 @@
|
||||
"build": "nuxt build",
|
||||
"start": "nuxt start",
|
||||
"generate": "nuxt generate",
|
||||
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
|
||||
"lintfix": "eslint --fix --ext .js,.vue --ignore-path .gitignore .",
|
||||
"precommit": "yarn run lint",
|
||||
"storybook": "start-storybook -p 9001 -c .storybook",
|
||||
"storybookoutput": "build-storybook -c .storybook -o .out"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nuxtjs/axios": "^5.0.0",
|
||||
"chart.js": "^2.7.1",
|
||||
"nuxt": "^1.3.0",
|
||||
"vue-chartjs": "^3.1.1",
|
||||
@ -32,11 +29,6 @@
|
||||
"@storybook/addon-viewport": "^3.4.0-alpha.7",
|
||||
"@storybook/addons": "^3.4.0-alpha.7",
|
||||
"@storybook/vue": "^3.4.0-alpha.7",
|
||||
"babel-eslint": "^8.2.1",
|
||||
"cross-env": "^5.0.1",
|
||||
"eslint": "^4.15.0",
|
||||
"eslint-loader": "^1.7.1",
|
||||
"eslint-plugin-vue": "^4.0.0",
|
||||
"stylus": "^0.54.5",
|
||||
"stylus-loader": "^3.0.1"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user