8081로 접속시 화면은 정상적으로 출력이 됩니다.
하지만 코드를 수정을 하면 인식을 하지 못합니다.
그래서 npm run prod 를 매번 해줘야 하는 상황입니다 ㅜ
package.json
"scripts": { "prod": "./node_modules/.bin/webpack --env=production", "dev": "./node_modules/.bin/webpack-dev-server --env=development", "start": "npm run dev" },webpack.config.js
const path = require('path'); module.exports = (env) => { let clientPath = path.resolve(__dirname, 'src/main/client'); let outputPath = path.resolve(__dirname, (env === 'production') ? 'src/main/resources/static/bundle' : 'out'); return { mode: !env ? 'development' : env, entry: { main: ["babel-polyfill", clientPath + '/js/entry/main.js'], etcList: ["babel-polyfill", clientPath + '/js/entry/etc-list.js'], collectionList: ["babel-polyfill", clientPath + '/js/entry/collection-list.js'], reviewList: ["babel-polyfill", clientPath + '/js/entry/review-list.js'], }, output: { path: outputPath, filename: '[name].bundle.js', }, devServer: { contentBase: outputPath, publicPath: '/', host: '0.0.0.0', port: 8081, proxy: { '**': 'http://127.0.0.1:8080' }, inline: true, hot: false }, } }뭘 놓치고 있는걸까요?..
hot: true