Download react-instantsearch/examples/server-side-rendering/webpack.config.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/server-side-rendering/webpack.config.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/server-side-rendering/webpack.config.js
-
curl -L -o webpack.config.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-instantsearch/examples/server-side-rendering/webpack.config.js
1.26 kB
| const path = require('path'); | |
| const nodeExternals = require('webpack-node-externals'); | |
| module.exports = [ | |
| { | |
| mode: 'development', | |
| entry: ['@babel/polyfill', './src/server.js'], | |
| output: { | |
| path: path.join(__dirname, 'dist'), | |
| filename: 'server.js', | |
| libraryTarget: 'commonjs2', | |
| publicPath: '/', | |
| }, | |
| target: 'node', | |
| node: { | |
| console: false, | |
| global: false, | |
| process: false, | |
| Buffer: false, | |
| __filename: false, | |
| __dirname: false, | |
| }, | |
| externals: nodeExternals(), | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.js$/, | |
| exclude: /node_modules/, | |
| use: [ | |
| { | |
| loader: 'babel-loader', | |
| }, | |
| ], | |
| }, | |
| ], | |
| }, | |
| }, | |
| { | |
| mode: 'development', | |
| entry: ['@babel/polyfill', './src/browser.js'], | |
| output: { | |
| path: path.join(__dirname, 'dist/assets'), | |
| publicPath: '/', | |
| filename: 'bundle.js', | |
| }, | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.js$/, | |
| exclude: /node_modules/, | |
| use: [ | |
| { | |
| loader: 'babel-loader', | |
| }, | |
| ], | |
| }, | |
| ], | |
| }, | |
| resolve: { | |
| extensions: ['.js', '.jsx'], | |
| }, | |
| }, | |
| ]; | |