处理反应应用程序时,我不明白来自index.jsx.js
的地方只有index.jsx
,conf webpack已设置:
entry: [
'babel-polyfill',
'webpack-dev-server/client?http://127.0.0.1:8080/', // Specify the local server port
'webpack/hot/only-dev-server', // Enable hot reloading
'./src/app/index.jsx' // This is where Webpack will be looking for the entry index.js file
],
resolve: {
modules: [
'node_modules',
'src',
path.resolve(__dirname, 'src/app'),
path.resolve(__dirname, 'node_modules')
],
extensions: ['.jsx', '.js']
},
任何想法??