-
-
Save RajatJain4061/65a95565df26af4ea81dc6cc44f88fdb to your computer and use it in GitHub Desktop.
This file contains 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
var webpack = require("webpack"); | |
module.exports = { | |
entry: { | |
"react-reading-time": [ | |
"webpack-dev-server/client?http://localhost:8881/", | |
"webpack/hot/only-dev-server", | |
"./example/react-reading-time.jsx" | |
] }, | |
output: { | |
path: __dirname, | |
filename: "[name].js", | |
publicPath: "http://localhost:8881/", | |
chunkFilename: "[id].chunk.js", | |
sourceMapFilename: "[name].map" | |
}, | |
resolve: { | |
extensions: ["", ".js", ".jsx", ".es6"], | |
modulesDirectories: ["node_modules"] | |
}, | |
module: { | |
loaders: [ | |
{ | |
test: /\.jsx$|\.es6$|\.js$/, | |
loader: "babel", | |
query: | |
{ | |
presets:["es2015", "react"] | |
}, | |
exclude: /node_module/}, | |
{ test: /\.scss$|\.css$/, loader: "style-loader!style!css!sass" } | |
] | |
}, | |
plugins: | |
[ | |
new webpack.NoErrorsPlugin() | |
], | |
devtool: "eval-source-map" | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment