/
githubmirror
/
styled-components
Обзор
Документация
Войти
/
githubmirror
/
styled-components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/benchmarks/webpack.config.js
56 строк
1 KB
Evan Jacobs
feat(sandbox): perf stress tests, shared sidebar, tailwind benchmark (#5719)
04 апр 2026, 05:57
Не верифицирован
04 апр 2026, 05:57
67c528f
Код
Авторство
О чём код?
const webpack = require('webpack'); const path = require('path'); const appDirectory = path.resolve(__dirname); module.exports = { mode: 'production', devtool: 'source-map', context: __dirname, entry: './src/index', output: { path: path.resolve(appDirectory, 'dist'), filename: 'bundle.js', }, performance: { hints: false, }, module: { rules: [ { test: /\.css$/i, use: [ 'style-loader', 'css-loader', { loader: '@tailwindcss/webpack', options: { base: path.join(appDirectory, 'src') }, }, ], }, { test: /\.js$/, enforce: 'pre', use: ['source-map-loader'], }, { test: /\.(js|tsx?)$/, include: [path.join(appDirectory, 'src')], use: { loader: 'babel-loader', }, }, ], }, plugins: [ new webpack.DefinePlugin({ __VERSION__: JSON.stringify('benchmark'), }), ], resolve: { alias: { 'react-native$': 'react-native-web', }, extensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.json'], }, };