Skip to content

Instantly share code, notes, and snippets.

@medkhelifi
Last active November 6, 2017 20:58
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/e5d0ed90eb3ffecaed099c8cb4d2813b to your computer and use it in GitHub Desktop.
Save medkhelifi/e5d0ed90eb3ffecaed099c8cb4d2813b 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"
},
module: {
rules: [
{
test: /\.jsx?$/,
use: ['babel-loader'],
exclude: /node_modules/
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment