itgalaxy / nunjucks-webpack-plugin

A webpack plugin for nunjucks.
MIT License
27 stars 12 forks source link

writeToFileWhenMemoryFS seems broken #6

Closed aendra-rininsland closed 6 years ago

aendra-rininsland commented 7 years ago

When I set writeToFileWhenMemoryFS, it seems Nunjucks compilation doesn't occur.

alexander-akait commented 7 years ago

@aendrew can your describe more details, your error message, configuration or minimum reproducible test repo?

aendra-rininsland commented 7 years ago

@evilebottnawi Here's a minimal rep test case repo: https://github.com/aendrew/6-nunjucks-webpack-plugin

With writeToFileWhenMemoryFS enabled, webpack-dev-server doesn't serve out any kind of rendered HTML template.

pauleveritt commented 7 years ago

FWIW, in the test case for @aendrew running the broken flavor generates:

(node:46194) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: EACCES: permission denied, open '/index.html'
(node:46194) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
webpack: wait until bundle finished: /

webpack-dev-server then doesn't detect any changes to anything after that.