Skip to content

Commit

Permalink
Remove Nuxt v1 configs
Browse files Browse the repository at this point in the history
  • Loading branch information
potato4d committed Sep 24, 2018
1 parent 0d28252 commit bd6b5d1
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 96 deletions.
18 changes: 0 additions & 18 deletions packages/modules-proxy-example/nuxt.config.js
Expand Up @@ -28,24 +28,6 @@ module.exports = {
target: 'http://localhost:8000',
pathRewrite: { '^/api/': '' }
}
},
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend (config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
}
}

20 changes: 1 addition & 19 deletions packages/modules-pwa-example/nuxt.config.js
Expand Up @@ -19,24 +19,6 @@ module.exports = {
loading: { color: '#3B8070' },
modules: [
'@nuxtjs/pwa'
],
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend (config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
}
]
}

18 changes: 0 additions & 18 deletions packages/my-first-nuxt-app/nuxt.config.js
Expand Up @@ -29,24 +29,6 @@ module.exports = {
],
env: {
QIITA_TOKEN: process.env.QIITA_TOKEN
},
/*
** Build configuration
*/
build: {
/*
** Run ESLint on save
*/
extend (config, { isDev, isClient }) {
if (isDev && isClient) {
config.module.rules.push({
enforce: 'pre',
test: /\.(js|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
}
}
}
}

12 changes: 0 additions & 12 deletions packages/nuxt-api-examples/nuxt.config.js
Expand Up @@ -47,17 +47,5 @@ module.exports = {
middleware: [
'auth'
]
},

/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {

}
}
}
17 changes: 1 addition & 16 deletions packages/nuxt-blog-service/nuxt.config.js
Expand Up @@ -57,20 +57,5 @@ module.exports = {
axios: {
baseURL: 'https://nuxt-blog-service.firebaseio.com'
// See https://github.com/nuxt-community/axios-module#options
},

/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {

}
},
vendor: [
'moment'
]
}
}
14 changes: 1 addition & 13 deletions packages/nuxt-testing-environment/nuxt.config.js
Expand Up @@ -40,17 +40,5 @@ module.exports = {
** Nuxt.js modules
*/
modules: [
],

/*
** Build configuration
*/
build: {
/*
** You can extend webpack config here
*/
extend(config, ctx) {

}
}
]
}

0 comments on commit bd6b5d1

Please sign in to comment.