-
Npm script problem
requirements: 1, the gulp command generates the dist folder, performs the watch operation 2, and then executes nodemon, to restart node server once the dist generated by gulp changes
"scripts": {
"server": "gulp &&...
-
Both LiveReload and watcher in gulp have been implemented, but there is no hot update to modify static resources. Ask for advice!
...
-
Gulp handles css merge under multiple folders
the file path is as follows. There may be multiple folders under style (not fixed 3):
app
style
common
cssreset.css
detail
a.css
b.css
c.css
d.css
order
a.css
b.css
c.cs...
-
I compiled the relevant files with gulp. Why did, github pages report an error after uploading to git?
I compiled my scss file with gulp, which can be uploaded to github, but, github pages shows 404? the query is shown in the picture: because it is a rookie, please give me an explanation?
githubnode_modules
...
-
Error compressing picture with gulp
gulp.task( testImagemin , function () {
return gulp.src( . images *.* )
.pipe(imagemin({
optimizationLevel: 5, :Number :3 :0-7
progressive: true, :Boolean :false jpg
interlaced: true, :Boolean :...
-
After gulp starts a service, the service points directly to index.html, but cannot load css and image js.
:http: localhost:8010 css:Refused to apply style from http: localhost:8010 public css index.css because its MIME type ( text html ) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
...
-
How does gulp.src exclude directories? pay attention to not even folders.
gulp.task( deal , function() {
return gulp.src([
src ** * ,
`!src template **`
])
.pipe(gulp.dest( dist ));
});
the above statement ignores all files in the "template " folder, but not the template folder. That is, af...
-
There is a 'require is not defined' problem' when using 'transform-runtime'' in gulp
to use es2017 s asynchronous functions in your project. so when using gulp to process js files, I used babel-preset-env and babel-plugin-transform-runtime . the require syntax of nodejs appears after parsing, so the browser reported an...
-
How to encrypt gulp js code
how gulp js code is encrypted
if this kind of code is encrypted
...
-
Why would gulp-htmlmin automatically pack my css less js files?
compress html gulp.task ( html , function () {)
var options = {
removeComments: true, HTML
collapseWhitespace: true, HTML
removeScriptTypeAttributes: true, <script>type="text java...
-
Gulp reported an error
gulp [11720]: srcnode_contextify.cc:631: Assertion `args [1]-> IsString () failed. ...
-
How to compress css and js in html by gulp
after packaging, there is no compression js and css. Do I have to propose compression?
...
-
What is it that causes the html file to be cropped after the gulp-useref call?
1. In the process of using gulp-useref, the file merging was successful, but why the html file I generated was cut
return gulp.src( . bulid result-1.html )
.pipe($.debug())
.pipe($.useref({},lazypipe().pipe($.sourcemap...
-
What is the problem with gulp compression code?
14:13:13] Starting agency:build ...
events.js:183
throw er; Unhandled error event
^
Error
at new JS_Parse_Error (eval at <anonymous> (D: 0410 wenjian2 gameSystem node_modules _uglify-js@2.6.4@uglify-js tools node.j...
-
How to configure packaging for the code of the AngularJs+RequireJs+angularAMD framework
how does the code of the AngularJs+RequireJs+angularAMD framework configure packaging now that the code is not packaged, how to configure it ...
-
Gulp package configuration, how to configure a folder, all levels below it
gulp packaging configuration, how to configure a folder, all the levels below it remain unchanged. If there are things that can be compressed, such as js,css, compress them, and copy those that cannot be compressed directly ....
-
Gulp didn't report an error after it started, but it can't be opened in the browser all the time.
npm start run result
$ npm start
> voteapp@1.0.0 start E: project PumpkinCage Pumpkin server
> set NODE_ENV=development&& gulp default
[15:53:55] Using gulpfile E: project PumpkinCage Pumpkin server gulpfile.js
[15:53:55] Start...
-
Run async newspaper regeneratorRuntime is not definedulp after gulp-babel compilation
many methods have been found on the Internet, but it is still not possible to install plug-ins. Babel-plugin-transform-runtime babel-runtime .babelrc is as follows
{
"presets": ["es2015","stage-3"],
"plugins&...
-
Localhost cannot access the local server, but the local area network address can access it.
is doing front-end page development. The project is packaged through gulp, and the server is used to open the web page with browser-sync native. can generally be accessed through localhost plus port. but now opening localhost, will jump to a page whe...
-
How does gulp+browser-sync represent multiple addresses
how does gulp+browser-sync proxy multiple addresses
for example:
gulp.task( browserSync ,function() {
const aipProxy = proxy( api , {
target: "http: 192.168.x.x:8080",
changeOrigin: true,
pathRewrite: {
...