Download server/config/webpack.config.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/config/webpack.config.js
- Command line
-
hf download hf://spaces/linuxrun/deer/server/config/webpack.config.js
-
curl -L -o webpack.config.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/config/webpack.config.js
497 Bytes
| const nodeExternals = require('webpack-node-externals'); | |
| const path = require('path'); | |
| module.exports = { | |
| mode: process.env.NODE_ENV, | |
| target: 'node', | |
| externals: [nodeExternals()], | |
| entry: { | |
| index: './src/index.js', | |
| }, | |
| output: { | |
| path: path.resolve('./src'), | |
| filename: '[name].bundle.js', | |
| }, | |
| module: { | |
| rules: [ | |
| { | |
| test: [/\.(js|jsx|mjs)$/], | |
| loader: 'babel-loader', | |
| } | |
| ] | |
| }, | |
| node: { | |
| __dirname: false, | |
| __filename: false, | |
| }, | |
| } | |