Overrides

Documentation article about Overrides

·1 min read·View Oracle Docs

Overrides

Overrides

The override object is only included if you introduce extension overrides. When you use the Override method, the Gulp.js commands detect any HTML or Sass overrides and automatically include them in this file.

For example, if you override the _error.sass file of the Extension1 extension and run the gulp theme:deploy command, the theme development tools add the following override your theme's manifest.json file as part of the deployment process:

json
1//...
2"override": [
3 {
4 "src": "Overrides/Extension1/Modules/MyExamplePDPExtension1/Sass/_error.scss",
5 "dst": "Extension1/Modules/MyExamplePDPExtension1/Sass/_error.scss"
6 },
7//...

Frequently Asked Questions (4)

What is the purpose of using the override object in NetSuite development?
The override object is used when you introduce extension overrides to ensure that any HTML or Sass overrides are detected and automatically included in the project's manifest.json file during deployment with Gulp.js commands.
Which command is associated with deploying overrides in NetSuite?
The `gulp theme:deploy` command is used as part of the deployment process to add overrides to your theme's manifest.json file.
Do overrides affect both HTML and Sass files in NetSuite extensions?
Yes, the overrides detect and include both HTML and Sass file changes when using the Override method in NetSuite extensions.
Is it necessary to manually add overrides to the manifest.json file after running gulp commands?
No, once the override method is used and the appropriate gulp commands are run, the overrides are automatically added to the manifest.json file.
Source: Overrides Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in General

View all General articles →