diff --git a/config/paths.js b/config/paths.js index bb13e80..f8a95f7 100644 --- a/config/paths.js +++ b/config/paths.js @@ -44,7 +44,7 @@ module.exports = { appPath: resolveApp('.'), appBuild: resolveApp('build'), appPublic: resolveApp('public'), - appHtml: resolveApp('public/index.html'), + appHtml: resolveApp('public/member/login.html'), appIndexJs: resolveApp('src/index.js'), appPackageJson: resolveApp('package.json'), appSrc: resolveApp('src'), diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 0e46bc7..ef72a62 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -76,7 +76,7 @@ module.exports = { devtool: 'cheap-module-source-map', // These are the "entry points" to our application. // This means they will be the "root" imports that are included in JS bundle. - entry: { + entry: [ // Include an alternative client for WebpackDevServer. A client's job is to // connect to WebpackDevServer by a socket and get notified about changes. // When you save a file, the client will either apply hot updates (in case @@ -87,21 +87,20 @@ module.exports = { // the line below with these two lines if you prefer the stock client: // require.resolve('webpack-dev-server/client') + '?/', // require.resolve('webpack/hot/dev-server'), - hot:require.resolve('react-dev-utils/webpackHotDevClient'), + require.resolve('react-dev-utils/webpackHotDevClient'), // Finally, this is your app's code: - index:'./src/index.js', - + paths.appIndexJs, // We include the app code last so that if there is a runtime error during // initialization, it doesn't blow up the WebpackDevServer client, and // changing JS code would still trigger a refresh. - }, + ], output: { // Add /* filename */ comments to generated require()s in the output. pathinfo: true, // This does not produce a real file. It's just the virtual path that is // served by WebpackDevServer in development. This is the JS bundle // containing code from all our entry points, and the Webpack runtime. - filename: 'static/js/[name].bundle.js', + filename: 'static/js/bundle.js', // There are also additional JS chunk files if you use code splitting. chunkFilename: 'static/js/[name].chunk.js', // This is the URL that app is served from. We use "/" in development. @@ -178,7 +177,7 @@ module.exports = { options: { formatter: require.resolve('react-dev-utils/eslintFormatter'), eslintPath: require.resolve('eslint'), - + }, loader: require.resolve('eslint-loader'), }, @@ -211,7 +210,7 @@ module.exports = { customize: require.resolve( 'babel-preset-react-app/webpack-overrides' ), - + plugins: [ [ require.resolve('babel-plugin-named-asset-import'), @@ -251,7 +250,7 @@ module.exports = { cacheDirectory: true, // Don't waste time on Gzipping the cache cacheCompression: false, - + // If an error happens in a package, it's possible to be // because it was compiled. Thus, we don't want the browser // debugger to show the original code. Instead, the code @@ -331,11 +330,8 @@ module.exports = { // Generates an `index.html` file with the