mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-24 15:00:31 +08:00
27 lines
572 B
JavaScript
27 lines
572 B
JavaScript
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)$/,
|
|
use: {
|
|
loader: 'url-loader',
|
|
options: {
|
|
limit: 100000,
|
|
},
|
|
},
|
|
});
|
|
|
|
return config
|
|
},
|
|
})); |