Download reactjs_koans/webpack.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/reactjs_koans/webpack.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/reactjs_koans/webpack.config.js
-
curl -L -o webpack.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/reactjs_koans/webpack.config.js
624 Bytes
| var webpack = require('webpack'); | |
| var path = require('path'); | |
| module.exports = { | |
| entry: [ | |
| 'webpack-dev-server/client?http://localhost:9090', | |
| 'webpack/hot/only-dev-server', | |
| './exercises/main' | |
| ], | |
| output: { | |
| path: __dirname + '/build/', | |
| filename: 'app.js', | |
| publicPath: 'http://localhost:9090/build/' | |
| }, | |
| module: { | |
| loaders: [ | |
| { test: path.join(__dirname, 'exercises'), loaders: ['react-hot', 'babel-loader']} | |
| ] | |
| }, | |
| resolve: { | |
| extensions: ['', '.js', '.jsx'] | |
| }, | |
| plugins: [ | |
| new webpack.HotModuleReplacementPlugin(), | |
| new webpack.NoErrorsPlugin() | |
| ] | |
| } | |