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
现在需要手动一个个require,我自己改成了自动require,代码如下,亲测没问题。
/** * @desc webpack打包入口文件 */ let moduleExports = {}; const r = require.context('./', true, /^\.\/.+\/.+\.js$/); r.keys().forEach(key => { let attr = key.substring(key.lastIndexOf('/') + 1, key.lastIndexOf('.')); moduleExports[attr] = r(key); }); module.exports = moduleExports;
The text was updated successfully, but these errors were encountered:
index.js 已更改为自动引入,非常感谢。:rose:
Sorry, something went wrong.
哈哈,不客气
No branches or pull requests
现在需要手动一个个require,我自己改成了自动require,代码如下,亲测没问题。
The text was updated successfully, but these errors were encountered: