cb1d744151
* Modified nextjs config so that it works with all types of fonts and images. * Update next.config.js * Fix code Co-authored-by: Tim Neutkens <timneutkens@me.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
26 lines
595 B
JavaScript
26 lines
595 B
JavaScript
const withCSS = require('@zeit/next-css')
|
|
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')
|
|
|
|
module.exports = withCSS({
|
|
webpack: (config) => {
|
|
config.module.rules.push({
|
|
test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/,
|
|
use: {
|
|
loader: 'url-loader',
|
|
options: {
|
|
limit: 100000,
|
|
},
|
|
},
|
|
})
|
|
|
|
config.plugins.push(
|
|
new MonacoWebpackPlugin({
|
|
// Add languages as needed...
|
|
languages: ['javascript', 'typescript'],
|
|
filename: 'static/[name].worker.js',
|
|
})
|
|
)
|
|
|
|
return config
|
|
},
|
|
})
|