我只能看到/平民的
以下的实际应用程序.
网页包.配置.js
中的配置如下:
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:8080',
'webpack/hot/only-dev-server',
'./应用程序/js/App.js'
],
output: {
path: path.join(__dirname, '平民的'),
filename: '捆js',
平民的Path: 'http://localhost:8080'
},
module: {
loaders: [
{
test: /\.js$/,
loaders: ['react-hot', 'babel-loader'],
exclude: / node 单元/
}
]
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
]
};
项目层次 struct 是:
-
应用程序
- js
node 单元
-
平民的
css
img
捆js
指数html
包裹json
网页包.配置.js
How can I modify to make sure the http://localhost:8080/
entry is for the 应用程序lication per se?