We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99600b4 commit 0d07263Copy full SHA for 0d07263
packages/nuxt-theme-module/index.js
@@ -18,7 +18,9 @@ module.exports = async function DefaultThemeModule(moduleOptions) {
18
const targetDirectory = moduleOptions.generate && moduleOptions.generate.path
19
? moduleOptions.generate.path
20
: '_theme';
21
- const projectLocalThemeDir = this.options.buildDir.replace('.nuxt', targetDirectory);
+ // const projectLocalThemeDir = this.options.buildDir.replace('.nuxt', targetDirectory);
22
+ const path = require('path');
23
+ const projectLocalThemeDir = path.join(this.options.rootDir, path.sep + targetDirectory);
24
25
if (moduleOptions.routes) {
26
this.extendRoutes((routes) => {
0 commit comments