Created
November 6, 2017 20:59
-
-
Save medkhelifi/bec5c17e9cd5c1ab7af362e6767e34e3 to your computer and use it in GitHub Desktop.
Gist for /react-webpack-todolist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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