![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@alauda/custom-webpack
Advanced tools
Custom webpack configuration with alauda dev server and other great features
Custom webpack configuration with alauda dev server and other great features
webpack-dev-server --open
serve
on production mode.
What means there will be no need to clone alauda-console and run make dev
by yourself.
Of course, you'll need to provide a console config file at ~/.consolerc.yml
(or any other valid configuration supported by cosmiconfig) with authentication.oidc_client_secret
, authentication.oidc_issuer_url
and console.api_address
.serve
on production mode.html-minifier
wrapper hm
to minify index.html
with common default options.dev-console
server for development which enables auto-login and no cross-origin (a console config like ~/.consolerc.yml
is required)dev-console
so that HTTP2 connection could be enabled for api gatewaycce
command for dev-console
or console-cli
ng serve --ssl
Other incredible features from you.
Install Dependencies:
yarn add -D @alauda/custom-webpack @angular-builders/custom-webpack
Config angular.json
:
// production
{
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "node_modules/@alauda/custom-webpack"
}
}
}
// development
{
"builder": "@angular-builders/custom-webpack:dev-server"
}
Config ~/.consolerc.yml
(required for console-cli
or dev-console
)
authentication:
http_proxy: proxy_url
https_proxy: proxy_url
no_proxy: localhost,127.0.0.1,0.0.0.0
login: login
password: password
console:
api_address: api_address
use_platform_api: false # optional, turn true to use /console-platform/api
defaultUser: # optional
login: login
password: password
envs:
- name: env_name # optional
api_address: api_address # required
login: login # optional, will fallback to #defaultUser.login
password: password # optional, will fallback to #defaultUser.password
use_platform_api: false # optional
run ng serve
, that's all, hope you like the development workflow.
yarn s
// package.json
{
"scripts": {
"postbuild": "hm"
}
}
cce # you can choose to install `@alauda/custom-webpack` globally
? Which alauda console env do you want to use? …
a https://a.example.com (adminA)
b https://b.example.com (adminB)
cce - a # quickly change to specify env
cce list
activeEnv: a
┌─────────┬──────────┬─────────────────────────┬─────────────────┬───────────────────┬──────────────────┐
│ (index) │ name │ api_address │ login │ password │ use_platform_api │
├─────────┼──────────┼─────────────────────────┼─────────────────┼───────────────────┼──────────────────┤
│ 0 │ 'a' │ 'https://a.example.com' │ 'adminA' │ 'passwordA' │ │
│ 1 │ 'b' │ 'https://b.example.com' │ 'adminB' │ 'passwordB' │ true │
└─────────┴──────────┴─────────────────────────┴─────────────────┴───────────────────┴──────────────────┘
If your need to custom the configuration again on top of @alauda/custom-webpack
, you can simply provide a file named webpack.config.js
, and config angular.json
:
// production
{
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "webpack.config.js"
}
}
}
// webpack.config.js
import { createRequire } from 'node:module'
import customWebpack from '@alauda/custom-webpack'
const require = createRequire(import.meta.url)
export default config => {
Object.assign(customWebpack(config).resolve.alias, {
moment$: 'dayjs/esm',
'moment-timezone$': require.resolve('./src/app/timezone'),
})
// mutate anything you want after calling `customWebpack(config)`
return config
}
ALAUDA_DISABLE_LAZY_COMPILE
: Whether to disable lazy compile on development.ALAUDA_DISABLE_START_CONSOLE
: Whether to disable starting console server automatically, not required if ALAUDA_ENABLE_DEV_CONSOLE
is trueALAUDA_ENABLE_DEV_CONSOLE
: Whether to enable dev console server automatically (highly unrecommended).ALAUDA_DISABLE_PROXY_API_GATEWAY
: Whether to disable proxy api gateway, if true then the true api address will be used instead, ALAUDA_ENABLE_DEV_CONSOLE
is required to take effectstartConsole
:
Control when or whether to start the (dev) console server in background on spawn
mode.
import { startConsole } from '@alauda/custom-webpack/start-console'
Anything you want us to expose?
FAQs
Custom webpack configuration with alauda dev server and other great features
The npm package @alauda/custom-webpack receives a total of 200 weekly downloads. As such, @alauda/custom-webpack popularity was classified as not popular.
We found that @alauda/custom-webpack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.