You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to extract the rendered templates to static HTML files which can be passed to a backend developer to be integrated with the CMS.
Is this possible?
ERROR in ./njk/hello.njk
Module build failed: ReferenceError: window is not defined
at new_cls.init (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorris/Dev/webpack-nunjucks-t
est/njk/hello.njk:645:23)
at new new_cls (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorris/Dev/webpack-nunjucks-te
st/njk/hello.njk:1528:29)
at Object.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorris/Dev/webpack-nunj
ucks-test/njk/hello.njk:3114:30)
at __webpack_require__ (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorris/Dev/webpack-nun
jucks-test/njk/hello.njk:21:30)
at module.exports.module.exports.oldRoot (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorr
is/Dev/webpack-nunjucks-test/njk/hello.njk:67:18)
at Object.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/nunjucks-loader/index.js!/Users/craigmorris/Dev/webpack-nunj
ucks-test/njk/hello.njk:70:10)
at Module._compile (module.js:571:32)
at Object.exec (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/NormalModule.js:126:12)
at Object.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/extract-text-webpack-plugin/loader.js:112:21)
at Compiler.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/Compiler.js:296:10)
at /Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/Compiler.js:499:13
at next (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/tapable/lib/Tapable.js:138:11)
at Compiler.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/extract-text-webpack-plugin/loader.js:93:4)
at next (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/tapable/lib/Tapable.js:140:14)
at Compiler.<anonymous> (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/CachePlugin.js:62:5)
at Compiler.applyPluginsAsyncSeries (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/tapable/lib/Tapable.js:142:13)
at /Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/Compiler.js:496:10
at Compilation.applyPluginsAsyncSeries (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/tapable/lib/Tapable.js:131:46)
at self.applyPluginsAsync.err (/Users/craigmorris/Dev/webpack-nunjucks-test/node_modules/webpack/lib/Compilation.js:649:19)
The text was updated successfully, but these errors were encountered:
I would like to be able to extract the rendered templates to static HTML files which can be passed to a backend developer to be integrated with the CMS.
Is this possible?
The text was updated successfully, but these errors were encountered: