Download react-color/webpack.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 971 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-color/webpack.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-color/webpack.config.js
-
curl -L -o webpack.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-color/webpack.config.js
971 Bytes
| const path = require('path') | |
| const webpack = require('webpack') | |
| module.exports = { | |
| entry: ['./docs/index.js'], | |
| output: { | |
| path: path.join(__dirname, 'docs/build'), | |
| filename: 'bundle.js', | |
| publicPath: 'docs/build/', | |
| }, | |
| module: { | |
| loaders: [ | |
| { | |
| test: /\.js$/, | |
| include: /react-context/, | |
| loaders: ['babel-loader'], | |
| }, | |
| { | |
| test: /\.js$/, | |
| exclude: [/node_modules/, /modules/], | |
| loaders: ['babel-loader'], | |
| }, { | |
| test: /\.jsx$/, | |
| exclude: [/node_modules/, /modules/], | |
| loaders: ['jsx-loader', 'babel-loader'], | |
| }, { | |
| test: /\.css$/, | |
| loaders: ['style-loader', 'css-loader'], | |
| }, { | |
| test: /\.md$/, | |
| loaders: ['html-loader'], | |
| }, | |
| ], | |
| }, | |
| resolve: { | |
| extensions: ['', '.js', '.jsx'], | |
| }, | |
| plugins: [ | |
| new webpack.HotModuleReplacementPlugin({ quiet: true }), | |
| new webpack.NoErrorsPlugin(), | |
| ], | |
| quiet: true, | |
| } | |