![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
gulp-component-inline
Advanced tools
Support for referencing artTemplate file (or css files) directly in JS by '__inline', then compile them into JS
Gulp Plugin which inlines artTemplate file (or css files) directly in JS by '__inline', and compiles them into JS
npm install gulp-header-license --save-dev
const gulp = require('gulp');
const component = require('gulp-component-inline');
gulp.task('default', () =>
gulp.src('src/*.js')
.pipe(component())
.pipe(gulp.dest('dist'))
);
The plugin can actively recognize which type of file do you want to compile. So it don't need any extra APIs, just use it simply in you task.
__inline('../tmpl/index.tmpl');
__inline('../css/index.css');
__inline('../css/index.scss');
<span class="menu-name">{{menu.title}}</span>
p {
margin: 0;
}
div {
text-align: center;
a {
color: red;
}
}
Finally, index.js
will compile to what is bellow:
[function($data,$filename
/*``*/) {
var $utils=this,$helpers=$utils.$helpers,$escape=$utils.$escape,menu=$data.menu,$out='';$out+='<span class="menu-name">';
$out+=$escape(menu.title);
$out+='</span>\n';
return new String($out);
}][0];
__inline('p{margin:0}');
__inline('div{text-align:center}div a{color:red}');
Congratulations! You now have mastered the usage of the plugin.
MIT
FAQs
Support for referencing artTemplate file (or css files) directly in JS by '__inline', then compile them into JS
The npm package gulp-component-inline receives a total of 1 weekly downloads. As such, gulp-component-inline popularity was classified as not popular.
We found that gulp-component-inline 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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.