Download react-grid-layout/webpack-dev-server.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-grid-layout/webpack-dev-server.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-grid-layout/webpack-dev-server.config.js
-
curl -L -o webpack-dev-server.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-grid-layout/webpack-dev-server.config.js
1.03 kB
| ; | |
| const path = require("path"); | |
| const webpack = require("webpack"); | |
| module.exports = { | |
| mode: "development", | |
| context: __dirname, | |
| entry: "./test/dev-hook.jsx", | |
| output: { | |
| path: "/", | |
| filename: "bundle.js", | |
| sourceMapFilename: "[file].map", | |
| publicPath: "/" | |
| }, | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.jsx?$/, | |
| exclude: /node_modules/, | |
| loader: "babel-loader", | |
| options: { | |
| cacheDirectory: true, | |
| plugins: [["react-hot-loader/babel"]] | |
| } | |
| } | |
| ] | |
| }, | |
| plugins: [ | |
| new webpack.DefinePlugin({ | |
| "process.env": { | |
| NODE_ENV: JSON.stringify("development") | |
| } | |
| }) | |
| ], | |
| devtool: "eval", | |
| devServer: { | |
| compress: true, | |
| port: 4002, | |
| open: "index-dev.html", | |
| client: { | |
| overlay: true | |
| }, | |
| static: { | |
| directory: "." | |
| } | |
| }, | |
| resolve: { | |
| extensions: [".webpack.js", ".web.js", ".js", ".jsx"], | |
| alias: { | |
| "react-grid-layout": path.join(__dirname, "/index-dev.js") | |
| } | |
| } | |
| }; | |