We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在src目录下的js中require加载css无问题,但在node_modules目录下的模块中有require加载css就异常了:Module not found: Error: Cannot resolve 'file' or 'directory' ... 是webpack本身问题还是dbl做的配置问题?
The text was updated successfully, but these errors were encountered:
自己改好了,配置文件中这样改就行了 resolve: { root: [srcDir, path.resolve(process.cwd(), './node_modules')], // 原来是root: [srcDir, './node_modules'] alias: sourceMap, extensions: ['', '.js', '.css', '.scss', '.tpl', '.png', '.jpg'] },
Sorry, something went wrong.
已自己解决了,见回复
太感谢了 我加入到里面去
No branches or pull requests
在src目录下的js中require加载css无问题,但在node_modules目录下的模块中有require加载css就异常了:Module not found: Error: Cannot resolve 'file' or 'directory' ...
是webpack本身问题还是dbl做的配置问题?
The text was updated successfully, but these errors were encountered: