An open API service indexing awesome lists of open source software.

https://github.com/charistheo/webpack-media-split

A simple example that splits CSS based on media queries used and generates separate files using Webpack. Those CSS files are then lazy loaded depending on screen width.
https://github.com/charistheo/webpack-media-split

css lazy-loading mediaqueries postcss webpack

Last synced: 3 months ago
JSON representation

A simple example that splits CSS based on media queries used and generates separate files using Webpack. Those CSS files are then lazy loaded depending on screen width.

Awesome Lists containing this project

README

          

# webpack-media-split


Demonstration of downloading CSS files based on screen width using Chrome DevTools

## Description

A simple example that splits CSS based on media queries used and generates separate files using Webpack.
Those CSS files are then lazy loaded depending on screen width.

1. Webpack build
2. Postcss example
3. `` example

## Run dev server

```
npm start
```

## Build

```
npm run build
```