Webpack 모드 설정
webpack.config.js 파일을 development로 만든다 const path = require('path'); module.exports = { entry: { mode:'development', main: './src/app.js' }, output: { path: path.resolve(__dirname, "output으로 나올 파일의 폴더"), filename: 'output으로 나올 파일', } } development모드일때는 명령어를 npx webpack만 입력해도 실행해도되지만 const path = require('path'); module.exports = { entry: { mode:'production', main: './src/app.js' }, output: { pat..
2020.06.23