Skip to content

Instantly share code, notes, and snippets.


Sudheer Reddy Kavalakuntla Sudheer-Reddy

  • WaveMaker, Inc.
  • Hyderabad
View GitHub Profile
Sudheer-Reddy / webpack.config.js
Last active Apr 12, 2021
Copy static assets in Webpack
View webpack.config.js
const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
const PATHS = {
src: path.join(__dirname, 'src'), //absolute path to RepoDir/src
dist: path.join(__dirname, 'dist') //absolute path to RepoDir/dist
module.exports = {
entry: {
//Webpack will automatically resolve it to RepoDir/src/js/index.js (if file name is not specified)