A solution does exist. You can utilize a Gulp plugin named gulp-strip-code
. To implement it, simply insert two comment lines above and below the code block, just like how CSS/JS unifiers operate. Here's an example:
IMPORTANT: I assume that you are familiar with Gulp.
/* start-code */
@import 'compass/reset';
/* end-code */
The process of integration is straightforward. Refer to the instructions provided on the plugin’s webpage.
Firstly, navigate to your primary project directory containing the node folder and install the plugin using the following command:
npm install gulp-strip-code --save-dev
Next, create a task for the plugin and specify the custom comments that need to be utilized as follows:
.pipe(stripCode({
start_comment: "begin-custom-block",
end_comment: "end-custom-block"
}))