Download webpack.config.js from mlc-ai/WebLLM-Structured-Generation-Playground: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/spaces/mlc-ai/WebLLM-Structured-Generation-Playground/resolve/main/webpack.config.js
- Command line
-
hf download hf://spaces/mlc-ai/WebLLM-Structured-Generation-Playground/webpack.config.js
-
curl -L -o webpack.config.js https://huggingface.co/spaces/mlc-ai/WebLLM-Structured-Generation-Playground/resolve/main/webpack.config.js
378 Bytes
| const path = require('path'); | |
| module.exports = { | |
| entry: './src/index.js', | |
| output: { | |
| filename: 'index.js', | |
| path: path.resolve(__dirname, 'dist'), | |
| }, | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.js$/, | |
| exclude: /node_modules/, | |
| use: { | |
| loader: 'babel-loader', | |
| }, | |
| }, | |
| ], | |
| }, | |
| resolve: { | |
| extensions: ['.js'], | |
| }, | |
| }; |