Add build and static exports
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,7 @@
|
|||||||
.next
|
.next
|
||||||
.idea
|
.idea
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
out
|
||||||
|
build
|
||||||
node_modules
|
node_modules
|
||||||
yarn-error.log
|
yarn-error.log
|
@ -2,6 +2,15 @@ const withSass = require('@zeit/next-sass');
|
|||||||
const withCSS = require('@zeit/next-css');
|
const withCSS = require('@zeit/next-css');
|
||||||
|
|
||||||
module.exports = withCSS(withSass({
|
module.exports = withCSS(withSass({
|
||||||
|
exportPathMap: () => {
|
||||||
|
return {
|
||||||
|
'/': { page: '/' },
|
||||||
|
'/about': { page: '/about' },
|
||||||
|
'/privacy': { page: '/privacy' },
|
||||||
|
'/terms': { page: '/terms' },
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
webpack(config, options) {
|
webpack(config, options) {
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
|
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next",
|
"dev": "next",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start"
|
"start": "next start",
|
||||||
|
"html": "next export"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.22",
|
"@fortawesome/fontawesome-svg-core": "^1.2.22",
|
||||||
|
Reference in New Issue
Block a user