获取http:// localhost:8080 / app / index.jsx.js 404(未找到)

时间:2018-03-06 16:15:22

标签: reactjs babel

处理反应应用程序时,我不明白来自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']
    },

任何想法??

0 个答案:

没有答案