/
chat-center
/
server
Обзор
Документация
Войти
/
chat-center
/
server
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
packages/widget/webpack/webpack.dev.js
45 строк
1 KB
levkin_s
Перенес модуль для публикации
04 авг 2026, 17:47
04 авг 2026, 17:47
0ed10dd
Код
Авторство
О чём код?
/* Development build: ========================================================================== */ const { merge } = require('webpack-merge'); // default config const commonConfig = require('./webpack.common.js'); module.exports = merge(commonConfig[1], { mode: 'development', devtool: 'inline-source-map', // spin up a server for quick development devServer: { compress: true, open: false, hot: true, port: 8084, client: { progress: false, overlay: { errors: false, warnings: false, }, }, // to test in other devices: allowedHosts: 'all', // fix CORS: historyApiFallback: true, }, plugins: [ // react refresh example: // https://github.com/pmmmwh/react-refresh-webpack-plugin // new ReactRefreshWebpackPlugin() ], resolve: { extensions: ['.ts', '.tsx', '.js', '.jsx'], }, watchOptions: { // for some systems, watching many files can result in a lot of CPU or memory usage // https://webpack.js.org/configuration/watch/#watchoptionsignored // ! don't use this pattern, if you have a monorepo with linked packages // ignored: /node_modules/, }, });