Skip to content

Instantly share code, notes, and snippets.

@coryhouse
Created February 28, 2021 20:50
Show Gist options
  • Save coryhouse/47c7f268553b4a4ce84c861595d909eb to your computer and use it in GitHub Desktop.
Save coryhouse/47c7f268553b4a4ce84c861595d909eb to your computer and use it in GitHub Desktop.
Development Webpack config for "Building a JavaScript Development Environment" on Pluralsight
import path from "path";
export default {
mode: "development",
devtool: "eval-source-map",
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "src"),
publicPath: "/",
filename: "bundle.js",
},
plugins: [],
module: {
rules: [
{ test: /\.js$/, exclude: /node_modules/, use: ["babel-loader"] },
{ test: /\.css$/, use: ["style-loader", "css-loader"] },
],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment