New issue
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
client 二级目录下的文件不会被 webpack 打包 #47
Comments
自行解决了 |
@andong-lad 请问怎么解决的呢? |
举个例子 const entry = factory.get('entry');
const { port } = defaultConfig.devServer;
entry.m_bindmailverify = [
`${require.resolve('webpack-dev-server/client')}?http://0.0.0.0:${port}`,
require.resolve('webpack/hot/only-dev-server'),
require.resolve('../client/pages/m/bindmailverify.tsx'),
]; |
@andong-lad 可以设置entry扫描深度 // config.default.js
{
webpack: {
custom: {
depth: 2,
}
}
} |
@njugray |
@ahungrynoob 需要升级到V2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behavior
http://localhost:6001/mobile/home/index 和 http://localhost:6001/home/index 都可以访问,但是 http://localhost:6001/mobile/home/index 是没有 js 和 css 的,因为没有进入 webpack entry:
Expected behavior
二级目录也能被 webpack 写入 entry 自动打包。例如上面的
/mobile/home/index
。 chunk name 规范可以例如mobile-home
The text was updated successfully, but these errors were encountered: