Skip to content

Instantly share code, notes, and snippets.

@mikaelvesavuori
Created May 23, 2018 13:26
Show Gist options
  • Save mikaelvesavuori/7335a0e1459fd67b5d8168387f80d59f to your computer and use it in GitHub Desktop.
Save mikaelvesavuori/7335a0e1459fd67b5d8168387f80d59f to your computer and use it in GitHub Desktop.
Example of extending a Webpack config
const baseConfig = require("./webpack.config");
const path = require("path");
module.exports = Object.assign(
{},
{
target: "node",
entry: "./src/ServerApp.jsx",
output: {
filename: "server.bundle.js",
path: path.resolve(__dirname, "functions/build"),
libraryTarget: "commonjs2"
}
},
baseConfig
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment