1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/web/webpack.dev.js
Syed Ahmed 64e4e32704 ui: fix last modified date on repo list (PROJQUAY-5408) (#1854)
Set to 'N/A' if last modified is not retured from the API
2023-05-01 16:41:10 -04:00

45 lines
935 B
JavaScript

const Dotenv = require('dotenv-webpack');
const {merge} = require('webpack-merge');
const common = require('./webpack.common.js');
const HOST = process.env.HOST || 'localhost';
const PORT = process.env.PORT || '9000';
module.exports = merge(common('development'), {
mode: 'development',
devtool: 'inline-source-map',
devServer: {
host: HOST,
port: PORT,
compress: true,
historyApiFallback: {
disableDotRule: true,
},
open: true,
proxy: {
'/api/v1': {
target: 'http://localhost:8080',
logLevel: 'debug',
},
'/csrf_token': {
target: 'http://localhost:8080',
logLevel: 'debug',
},
},
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
],
},
plugins: [
new Dotenv({
systemvars: true,
silent: true,
path: './.env.development',
}),
],
});