Skip to content

Instantly share code, notes, and snippets.

@medkhelifi
Created November 6, 2017 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save medkhelifi/bec5c17e9cd5c1ab7af362e6767e34e3 to your computer and use it in GitHub Desktop.
Save medkhelifi/bec5c17e9cd5c1ab7af362e6767e34e3 to your computer and use it in GitHub Desktop.
Gist for /react-webpack-todolist
const webpack = require('webpack');
const {resolve} = require('path');
module.exports = {
context: resolve(__dirname, 'src'),
entry: [
'./main.jsx'
],
output: {
path:resolve(__dirname, "public"),
publicPath: "/public/",
filename: "bundle.js"
}
...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment