Download client/config/webpack.config.prod.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 911 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/config/webpack.config.prod.js
- Command line
-
hf download hf://spaces/linuxrun/deer/client/config/webpack.config.prod.js
-
curl -L -o webpack.config.prod.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/config/webpack.config.prod.js
911 Bytes
| const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
| const { | |
| cssLoaderWithModules, | |
| cssLoaderWithoutModules, | |
| postcssLoader, | |
| stylusLoader, | |
| babelLoader, | |
| } = require('./loaders'); | |
| const paths = require('./paths'); | |
| module.exports = { | |
| mode: 'production', | |
| entry: paths.appIndexJs, | |
| devtool: false, | |
| output: { | |
| path: paths.appBuild, | |
| filename: 'index.bundle.js', | |
| }, | |
| module: { | |
| rules: [ | |
| { | |
| test: [/\.(js|jsx|mjs)$/], | |
| include: paths.appSrc, | |
| use: [babelLoader], | |
| }, | |
| { | |
| test: /\.css$/, | |
| use: [MiniCssExtractPlugin.loader, cssLoaderWithoutModules, postcssLoader], | |
| }, | |
| { | |
| test: /\.cm\.styl$/, | |
| use: [MiniCssExtractPlugin.loader, cssLoaderWithModules, postcssLoader, stylusLoader], | |
| }, | |
| ], | |
| }, | |
| plugins: [ | |
| new MiniCssExtractPlugin(), | |
| ], | |
| devServer: { | |
| contentBase: './build', | |
| }, | |
| }; | |