All Questions
455 questions
1
vote
1
answer
41
views
Does Webpack need an entry and output?
I am migrating an old gulp project over to webpack, and wondered if it was possible to make a webpack project that doesn't require the entry and output options, I have a series of tasks that need ...
1
vote
0
answers
17
views
Multiple Node.js builds in different subfolders with different node versions with one command possible?
I'm working on a project, a WordPress plugin for the Divi theme, with the following file structure:
root
gulpfile.js
package.json
/src/divi4
gulpfile.js
package.json
/src/divi5
gulpfile.js
...
0
votes
0
answers
204
views
'gulp serve' keep getting stuck at 'configure-webpack'
I'm doing some SPFx developments. But today, all of sudden, whenever I run 'gulp serve', it only loads 1 time, and then in all the subsequent page refreshes, it keeps being stuck at:
[22:37:58] ...
0
votes
0
answers
29
views
How do I connect js files to Gulp?
I'm trying to figure out Gulp and I ran into this problem: .The js file is uploaded to dist, but the file script does not run, and HTML and CSS are displayed normally. Tell me, please, what is the ...
1
vote
1
answer
164
views
Gulp compile problems with mac m1 gulp-notify and node-notify errors
I have macbook pro m1
i am using gulp with webpack for wp project to compile code.
i get this error
[16:28:42] gulp-notify: [Error in notifier] Error in plugin "gulp-notify"
Message:
...
3
votes
1
answer
2k
views
Error [ERR_REQUIRE_ESM]: require() of ES Module in gulpfile.js
I have a React16 project and I'm trying to update it to React18, with old packages everything work well. but I updated all packages and dependecies, and when I want to run it it return this error:
$ ...
1
vote
0
answers
118
views
Yarn can't use arguments on custom scripts
I have a few projects that uses the same structure, so I have a bunch of scripts set on package.json to run each project for development and production.
I was able to create custom args on the script ...
0
votes
1
answer
486
views
How to not minify js file in build in gulp?
I want to NOT minify the main js file ( app.js ) in production mode ( npm run build ). I use webpack-stream to compress and import various files/libraries into one single app.js file. But, for some ...
0
votes
1
answer
442
views
vue-loader ignores the <template> tag on .vue files
I am trying to use webpack, vue-loader and gulp to compile single component files, but the damn thing completely ignores the <template> tags and as result I am getting warnings such as: "...
0
votes
1
answer
86
views
Running gulp postcss in parallel with webpack
I'm working on a project with a pre-configured webpack setup, that I cannot change. I do have access to the package.json though.
I'd like to use nesting in the css files. Every component in src/...
0
votes
0
answers
23
views
Investigate why package.json is displayed under /package.json
I'm sorry if I don't provide any relevant code here but I need help where to investigate why package.json is displayed in development and production under http/https://[SITE]/package.json.
It's a ...
0
votes
2
answers
637
views
Module not found: Error: Can't resolve '@angular/platform-browser/animations'
Recently updated from Angular 12 to latest & updated respective package.json references to latest as well
Error:
Module not found: Error: Can't resolve '@angular/platform-browser/animations' in '...
1
vote
1
answer
72
views
Using Webpack and Gulp how can I selectively combine some files and not others?
So I have a situation...
I am using Gulp (no choice have to stick with it on this one), and I need to use Webpack to combine some JS files, as outlined in the example below, and move them to a ...
0
votes
1
answer
914
views
Import multiple SCSS files into one SCSS file and compile to one CSS file
So I have the following main scss directory: /assets/scss/main.scss.
In this file, I have the following items:
@charset "utf-8";
// Initial variables must be imported first
@import "../....
0
votes
0
answers
57
views
My ReactJs locahlost keeps refreshing every second in my Mac
I am working in company project and running my project ReactJs app using gulp
From last few months when ever i am trying to access localhost using URL
https://localhost.comapny.com:8443/
its keep ...