{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/8368","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/8368/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/8368/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/8368/events","html_url":"https://github.com/webpack/webpack/issues/8368","id":379478358,"node_id":"MDU6SXNzdWUzNzk0NzgzNTg=","number":8368,"title":"Old production script is loading in HTML but production script was successfully updated","user":{"login":"techmynd","id":3610993,"node_id":"MDQ6VXNlcjM2MTA5OTM=","avatar_url":"https://avatars1.githubusercontent.com/u/3610993?v=4","gravatar_id":"","url":"https://api.github.com/users/techmynd","html_url":"https://github.com/techmynd","followers_url":"https://api.github.com/users/techmynd/followers","following_url":"https://api.github.com/users/techmynd/following{/other_user}","gists_url":"https://api.github.com/users/techmynd/gists{/gist_id}","starred_url":"https://api.github.com/users/techmynd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techmynd/subscriptions","organizations_url":"https://api.github.com/users/techmynd/orgs","repos_url":"https://api.github.com/users/techmynd/repos","events_url":"https://api.github.com/users/techmynd/events{/privacy}","received_events_url":"https://api.github.com/users/techmynd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-11T01:09:38Z","updated_at":"2018-11-11T01:09:38Z","closed_at":null,"author_association":"NONE","body":"<!-- Bug reports and Feature requests must use other templates, or will be closed -->\r\n<!-- Please ask questions on StackOverflow or the webpack Gitter (https://gitter.im/webpack/webpack). -->\r\n<!-- Issues which contain questions or support requests will be closed. -->\r\nI have a weird issue.\r\nI am using webpack 4 to generate app.js and app.min.js and i have used that script in HTML.\r\n\r\nMy package.json scripts are these:\r\n\r\n```\r\n\"build:dev\": \"webpack --mode development --module-bind js=babel-loader ./src/index.js --output ./dist/scripts/app.js\",\r\n\"build:prod\": \"webpack --mode production --module-bind js=babel-loader ./src/index.js --output ./dist/scripts/app.min.js\", \r\n\"build:process\": \"npm-run-all build:dev build:prod\"\r\n```\r\n\r\nAnd I have .babelrc file that contains following:\r\n\r\n```\r\n{\r\n    \"presets\": [\r\n        \"@babel/preset-env\"\r\n    ]\r\n}\r\n```\r\n\r\nI am not sure my script is using babel-core or @babel/preset-env or @babel/core\r\n\r\nMy dependencies are below:\r\n\r\n```\r\n  \"dependencies\": {\r\n    \"babel-polyfill\": \"^6.26.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@babel/core\": \"^7.1.5\",\r\n    \"@babel/preset-env\": \"^7.1.5\",\r\n    \"autoprefixer\": \"^9.3.1\",\r\n    \"babel-cli\": \"^6.26.0\",\r\n    \"babel-core\": \"^6.26.3\",\r\n    \"babel-loader\": \"^8.0.4\",\r\n    \"babel-minify-webpack-plugin\": \"^0.3.1\",\r\n    \"babel-preset-env\": \"^1.7.0\",\r\n    \"babel-register\": \"^6.26.0\",\r\n    \"body-parser\": \"^1.18.3\",\r\n    \"browser-sync\": \"^2.26.3\",\r\n    \"compression\": \"^1.7.3\",\r\n    \"cross-env\": \"^5.2.0\",\r\n    \"css-loader\": \"^1.0.1\",\r\n    \"csv-loader\": \"^3.0.2\",\r\n    \"eslint\": \"^5.9.0\",\r\n    \"eslint-loader\": \"^2.1.1\",\r\n    \"eslint-plugin-import\": \"^2.14.0\",\r\n    \"express\": \"^4.16.4\",\r\n    \"extract-text-webpack-plugin\": \"^3.0.2\",\r\n    \"file-loader\": \"^2.0.0\",\r\n    \"html-webpack-plugin\": \"^3.2.0\",\r\n    \"jsdom\": \"^13.0.0\",\r\n    \"localtunnel\": \"^1.9.1\",\r\n    \"mini-css-extract-plugin\": \"^0.4.4\",\r\n    \"node-sass\": \"^4.10.0\",\r\n    \"nodemon\": \"^1.18.6\",\r\n    \"npm-run-all\": \"^4.1.3\",\r\n    \"postcss-cli\": \"^6.0.1\",\r\n    \"postcss-loader\": \"^3.0.0\",\r\n    \"sass-loader\": \"^7.1.0\",\r\n    \"style-loader\": \"^0.23.1\",\r\n    \"uglify-js\": \"^3.4.9\",\r\n    \"uglifyjs-folder\": \"^1.5.1\",\r\n    \"uglifyjs-webpack-plugin\": \"^2.0.1\",\r\n    \"url-loader\": \"^1.1.2\",\r\n    \"webpack\": \"^4.25.1\",\r\n    \"webpack-cli\": \"^3.1.2\",\r\n    \"webpack-dev-middleware\": \"^3.4.0\",\r\n    \"webpack-dev-server\": \"^3.1.10\",\r\n    \"webpack-hot-middleware\": \"^2.24.3\",\r\n    \"xml-loader\": \"^1.2.1\"\r\n  }\r\n```\r\n\r\nI am generating app.js and app.min.js from index.js\r\nThe files are getting generated and if i change code in index.js its gets updated in output but in html page where i have called it like\r\n\r\n`<script src=\"assets/scripts/app.min.js\"></script>`\r\n\r\nis not getting updated and is loading old code. I am looking at same code output after every new production build even though its being changed in the app.min.js\r\n"}}
{"actor":{"display_login":"techmynd"}}