Refactor: Modularize home page (#1372)
* Move HTTP headers section to component * Move import cURL modal to component * Move Notes, OAuth token modal to seperate components * Fix deepcode analysis * Move parameters section to seperate component * Move codegen modal to component * ES6
This commit is contained in:
@@ -306,16 +306,16 @@ export default {
|
||||
// Build Configuration (https://go.nuxtjs.dev/config-build)
|
||||
build: {
|
||||
// You can extend webpack config here
|
||||
extend(config, ctx) {
|
||||
extend(config, { isDev, isClient }) {
|
||||
// Sets webpack's mode to development if `isDev` is true.
|
||||
if (ctx.isDev) {
|
||||
if (isDev) {
|
||||
config.mode = "development"
|
||||
}
|
||||
config.node = {
|
||||
fs: "empty",
|
||||
}
|
||||
|
||||
if (ctx.isClient) {
|
||||
if (isClient) {
|
||||
config.module.rules.unshift({
|
||||
test: /\.worker\.(c|m)?js$/i,
|
||||
use: { loader: "worker-loader" },
|
||||
|
||||
Reference in New Issue
Block a user