Webpack
Overview
Entry
module.exports = {
entry: './path/to/my/entry/file.js',
};Output
const path = require('path');
module.exports = {
entry: './path/to/my/entry/file.js',
// to declare the output file path and name
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'my-first-webpack.bundle.js',
},
};Loader
Plugin
Last updated