![]() Further image configuration is available by passing options to the method exactly as in image-webpack-loader. To enable image optimization, install image-webpack-loader and call enableImagemin() in the Encore config. First lets create a directory, initialize npm, install webpack locally, and install the webpack-cli(the tool used to run webpack on the command line): Throughout the Guides we will use diffblocks to show you what changes were making to directories, files, and code. Not sure if stuff should be named after the loader (as of now), or rather something like enableImageOptimization() or name the feature imagemin instead of image-webpack…~~ We're using image-webpack-loader, which internally uses imagemin to optimize images. ~~The method and feature name are kinda confusing due to the dependencies. Looking for general feedback as this is my first time working with Encore, so I'm not sure if my approaches make sense. As discussed with here's a first POC for adding image optimization.
0 Comments
Leave a Reply. |