Giter Club home page Giter Club logo

Comments (3)

pnikolov avatar pnikolov commented on August 22, 2024 1

Hi @mityaua

This deprecation warning will not prevent the template from proper building your assets.
As far as I can see the warning is generated from the postcss here is the issue discussing this warning with different versions of node DeprecationWarning: Use of deprecated folder mapping.

from frontend-webpack-boilerplate.

pnikolov avatar pnikolov commented on August 22, 2024 1

@mityaua

Images part of the content (<img> tags and files placed under src/images/content) are not part of the design of the page and does not go through optimisation as the assumption here is that they have been uploaded via CMS or something similar, like they are dynamic generated images - published in "runtime" etc.

All images part of the design itself (CSS backgrounds, etc.) are being optimised during the "build" assets process.

This is the default behaviour, you can change directory names or reconfigure if you want to optimise the content images if you build a fully static templates that are not targeted to be embedded in a server side web application.

from frontend-webpack-boilerplate.

mityaua avatar mityaua commented on August 22, 2024

Yes, indeed, your "plate" works without errors, only this notification. Updating node to version 15.10 solves this problem.

Does this mean that the next warning has nothing to do with this? Or am I doing something wrong with the pictures?

I just put image in the src/images folder and then npm run production (or npm run build). Compression not working? File size has not changed.

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (500 KiB).
This can impact web performance.
Assets:
images/content/everest_mountain.jpg (3.03 MiB)

WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

webpack 5.22.0 compiled with 2 warnings in 22824 ms

...

from frontend-webpack-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.