Skip to content

Instantly share code, notes, and snippets.

View Sudheer-Reddy's full-sized avatar

Sudheer Reddy Kavalakuntla Sudheer-Reddy

  • WaveMaker, Inc.
  • Hyderabad
View GitHub Profile
@Sudheer-Reddy
Sudheer-Reddy / webpack.config.js
Last active April 12, 2021 14:57
Copy static assets in Webpack
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)