
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
parcel-plugin-nodegui
Advanced tools
Use and bundle assets with your nodegui app
This plugin allows you to import actual assets, such as css and image files, into your NodeGUI app and utilize them in your app.
require
(much like web and React Native) 🎨require
đź–ĽRun the following command:
npm install --save-dev parcel-plugin-nodegui
Import and use css with your NodeGUI windows's styleSheet
prop.
In order to use CSS in your NodeGUI app, simply require it:
const style = require('./style.css');
And use it with the Window
widget's styleSheet
property:
<Window styleSheet={style}>
...
</Window>
Note: Do not forget that selectors in NodeGUI apps are the elements' ids, and therefore you should use the
#thisIsId
selector in your stylesheets.
style.css
#container {
flex: 1;
flex-direction: column;
min-height: '100%';
background: #4B4B4B;
}
#text {
color: white;
}
app.jsx
const App = () => {
return (
<Window
styleSheet={require('./style.css')}
>
<View id="container">
<Text id="text">Hello, world</Text>
</View>
</Window>
);
};
Simply follow the regular guide regarding how to use said pre-processors in your project:
The plugin will automatically utilize their output CSS in your project.
Import and use image files with your NodeGUI's Image
components.
In order to use image assets in your NodeGUI app, simply require them:
const image = require('./image.png');
And use them with the Image
widget's src
property:
<Image src={image} />
FAQs
use and bundle assets with your nodegui app
The npm package parcel-plugin-nodegui receives a total of 6 weekly downloads. As such, parcel-plugin-nodegui popularity was classified as not popular.
We found that parcel-plugin-nodegui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.