Add build and static exports

This commit is contained in:
Kamran Ahmed
2019-10-18 23:40:37 +04:00
parent a1d5f9aadd
commit fb197ae3b3
3 changed files with 13 additions and 1 deletions

View File

@@ -2,6 +2,15 @@ const withSass = require('@zeit/next-sass');
const withCSS = require('@zeit/next-css');
module.exports = withCSS(withSass({
exportPathMap: () => {
return {
'/': { page: '/' },
'/about': { page: '/about' },
'/privacy': { page: '/privacy' },
'/terms': { page: '/terms' },
};
},
webpack(config, options) {
config.module.rules.push({
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,