mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
45 lines
935 B
JavaScript
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',
|
|
}),
|
|
],
|
|
});
|