Last active
November 6, 2017 20:58
-
-
Save medkhelifi/e5d0ed90eb3ffecaed099c8cb4d2813b 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" | |
}, | |
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