plugins: [
new webpack.HotModuleReplacementPlugin(),
new ManifestRevisionPlugin(
path.join(__dirname, 'ads', 'web', 'static', 'built', 'manifest.json'), {
rootAssetPath: path.join(__dirname, 'ads', 'web', 'static'),
}),
],
running webpack yields this error
ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' .//Users/qria/dodo-ads/ads/web/static/css/intro.scss.css in /Users/qria/dodo-ads
ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' .//Users/qria/dodo-ads/ads/web/static/css/intro.scss.css.map in /Users/qria/dodo-ads
ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' .//Users/qria/dodo-ads/ads/web/static/css/style.scss.css in /Users/qria/dodo-ads
ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' .//Users/qria/dodo-ads/ads/web/static/css/style.scss.css.map in /Users/qria/dodo-ads
ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' .//Users/qria/dodo-ads/ads/web/static/built/bundle.f9bc1dad5d8767887b16.js in /Users/qria/dodo-ads
ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' .//Users/qria/dodo-ads/ads/web/static/built/bundle.f9bc1dad5d8767887b16.js.map in /Users/qria/dodo-ads
ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' .//Users/qria/dodo-ads/ads/web/static/built/manifest.json in /Users/qria/dodo-ads
(...) bunch of lines more
changing __dirname to '.' makes the error go away.
from my webpack.config.js file:
running webpack yields this error
changing
__dirname
to'.'
makes the error go away.