Created
November 3, 2019 20:47
-
-
Save danielroe/72618a5617c637e15613a51a911221ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable @typescript-eslint/no-var-requires */ | |
const { Nuxt, Builder } = require('nuxt') | |
const config = require('./nuxt.config') | |
/* eslint-enable */ | |
process.env.DEBUG = 'nuxt:*' | |
const nuxt = new Nuxt({ | |
...config, | |
dev: false, | |
}) | |
nuxt.moduleContainer.addModule('@nuxt/typescript-build') | |
config.modules.forEach(module => nuxt.moduleContainer.addModule(module)) | |
config.buildModules.forEach(module => nuxt.moduleContainer.addModule(module)) | |
const builder = new Builder(nuxt) | |
const webpackConfig = builder.bundleBuilder.getWebpackConfig('Client') | |
module.exports = webpackConfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment