[webpack] ch3. Webpack Output

Webpack Output

Output Name Options

output: {
    filename: '[name].js',  //1
    filename: '[hash].js',  //2
    filename: '[chunkhash].js',  //3
}

참고 API

path.join()

path.resolve()

path.resolve(‘/foo/bar’, ‘/tmp/file/’); // ‘/tmp/file

path.resolve(‘wwwroot’, ‘static_files/png/’, ‘../gif/image.gif’); // 만약 현재 디렉토리가 /home/myself/node 라면 // ‘/home/myself/node/wwwroot/static_files/gif/image.gif’ ```