Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4924 from goki90210/feature/4923-configure-to-nux…
Browse files Browse the repository at this point in the history
…tconfig

ConfigurationをNuxtConfigに変更する
  • Loading branch information
soutaito authored Jul 7, 2020
2 parents 14380b6 + b053de4 commit e0590ed
Show file tree
Hide file tree
Showing 3 changed files with 12,790 additions and 12,853 deletions.
7 changes: 3 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { Configuration } from '@nuxt/types'
import { Configuration as WebpackConfiguration } from 'webpack'
import { NuxtConfig } from '@nuxt/types'
import i18n from './nuxt-i18n.config'
const purgecss = require('@fullhuman/postcss-purgecss')
const autoprefixer = require('autoprefixer')
const environment = process.env.NODE_ENV || 'development'

const config: Configuration = {
const config: NuxtConfig = {
mode: 'universal',
/*
** Headers of the page
Expand Down Expand Up @@ -140,7 +139,7 @@ const config: Configuration = {
})
]
},
extend(config: WebpackConfiguration, _: any) {
extend(config) {
// default externals option is undefined
config.externals = [{ moment: 'moment' }]
}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"typescript": "^3.9.6",
"vue-axe": "^2.3.1",
"vue-jest": "^4.0.0-0",
"vue-template-compiler": "^2.6.11",
"webpack": "^4.43.0"
"vue-template-compiler": "^2.6.11"
}
}
Loading

0 comments on commit e0590ed

Please sign in to comment.