Answer the question
In order to leave comments, you need to log in
How to upload uncompressed js code to production in gulp using webpack plugin?
How to upload uncompressed js code to production in gulp using webpack plugin? It is desirable to get the code itself clean, which cannot be achieved in the production version of the webpack. The file will be compressed on the server using the php framework, and I need to insert a human-readable source there, and then compress it.
My connection design is extremely simple:
.pipe(webpack({
mode: 'production',
output: {
filename: 'app.min.js'
},
externals: {
jquery: 'jQuery'
}
}))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question