— Webpack, javascript — 1 min read
1output: {2 path: path.resolve(__dirname, 'dust'),3 filename: 'bundle.js'4 // filename: '[name].js' 처럼 entry 목록의 파일명으로 나눠서 생성할 수 있다.5}
1path.join('/foo', 'bar', 'bar/asdf');2// Returns: '/foo/bar/baz/asdf'
1path.resolve('/foo/bar', './baz');2// Returns: '/foo/bar/baz'34path.resolve('/foo/bar', '/tmp/file/');5// Returns: '/tmp/file/'67path.resolve('wwwroot', 'static_files/png/', '../gif/image.gif');8// if the current working directory is /home/myself/node,9// this Returns: '/home/myself/node/wwwroot/static_files/gif/image.gif'