
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@nativescript/webpack
Advanced tools
Webpack configuration for NativeScript apps.
Documentation · Environment Setup · Contribute · Community
All NativeScript applications are bundled using webpack. This package provides the required configuration to build NativeScript apps with flexibility to customize as needed.
npm install @nativescript/webpack --save-dev
All new projects come with a base webpack.config.js that's pre-configured:
const webpack = require('@nativescript/webpack')
module.exports = (env) => {
webpack.init(env)
// Learn how to customize:
// https://docs.nativescript.org/webpack
return webpack.resolveConfig()
}
.env files to manage environment variables--env.reportUseful globally available variables in your app:
| Variable | Description |
|---|---|
__DEV__ | true when building in development mode |
global.isAndroid / __ANDROID__ | true when platform is Android |
global.isIOS / __IOS__ | true when platform is iOS |
global.isVisionOS / __VISIONOS__ | true when platform is visionOS |
global.__APPLE__ | true when platform is iOS or visionOS |
| Method | Description |
|---|---|
webpack.init(env) | Initialize the internal env object (required) |
webpack.chainWebpack(chainFn) | Add chain functions to modify config |
webpack.mergeWebpack(obj) | Merge objects into the final config |
webpack.resolveConfig() | Resolve the final webpack configuration |
| Flag | Description |
|---|---|
--no-hmr | Disable Hot Module Replacement |
--env.production | Enable production mode with minification |
--env.report | Generate bundle analysis report |
--env.verbose | Print verbose logs and internal config |
--env.e2e | Enable E2E mode (enables testID property) |
For complete documentation including configuration examples, visit the webpack configuration guide.
FAQs
Unknown package
The npm package @nativescript/webpack receives a total of 2,206 weekly downloads. As such, @nativescript/webpack popularity was classified as popular.
We found that @nativescript/webpack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.