All Projects → 2nthony → loading-screen

2nthony / loading-screen

Licence: MIT license
🚥Loading screen for webpack plugin inspired by Nuxt.js's loading screen

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to loading-screen

nuxt-netlify-cms-starter
NuxtJS + Netlify CMS blog starter project
Stars: ✭ 35 (-37.5%)
Mutual labels:  nuxt
platform
Community platform for dancers
Stars: ✭ 30 (-46.43%)
Mutual labels:  nuxt
geofind
Multiplayer Geographical Guessing Game using PostGIS, Nuxt, Leaflet & Colyseus.
Stars: ✭ 31 (-44.64%)
Mutual labels:  nuxt
remove-files-webpack-plugin
A plugin for webpack that removes files and folders before and after compilation.
Stars: ✭ 48 (-14.29%)
Mutual labels:  webpack-plugin
nuxt-svg-sprite-module
A quick and dirty way to inline svg sprites in your Nuxt app.
Stars: ✭ 21 (-62.5%)
Mutual labels:  nuxt
vue-plausible
Plausible Analytics Vue.js Plugin and NuxtJS Module
Stars: ✭ 107 (+91.07%)
Mutual labels:  nuxt
Portfolio
Nuxt & Vue based new portfolio website 🚀
Stars: ✭ 24 (-57.14%)
Mutual labels:  nuxt
LaraNuxt
Laravel framework with integrated NuxtJs support, preconfigured for eslint, jest and vuetify.
Stars: ✭ 53 (-5.36%)
Mutual labels:  nuxt
lesspod-2.0
Serverless CMS (Currently In Development)
Stars: ✭ 60 (+7.14%)
Mutual labels:  nuxt
bangumi
Bangumi List
Stars: ✭ 20 (-64.29%)
Mutual labels:  nuxt
unplugin-icons
🤹 Access thousands of icons as components on-demand universally.
Stars: ✭ 2,064 (+3585.71%)
Mutual labels:  nuxt
nuxt-wp
Nuxt.js app which consumes the WordPress.com REST API
Stars: ✭ 17 (-69.64%)
Mutual labels:  nuxt
hackaru-desktop
Hackaru for desktop
Stars: ✭ 37 (-33.93%)
Mutual labels:  nuxt
chicio.github.io
👻 Fabrizio Duroni (me 😄) personal website. Created using GatsbyJS, Styled Components, Storybook, Typescript, tsParticles, GitHub pages, Github Actions, Upptime.
Stars: ✭ 20 (-64.29%)
Mutual labels:  webpack-plugin
nuxt-ts-module
A tiny module to use Typescript within Nuxt.js application.
Stars: ✭ 21 (-62.5%)
Mutual labels:  nuxt
targets-webpack-plugin
Webpack plugin for transcompilig final bundles so they support legacy browsers
Stars: ✭ 15 (-73.21%)
Mutual labels:  webpack-plugin
webpack-alioss-upload-plugin
A flexible webpack plugin to upload files to aliyun oss, which supports multiple optional upload methods and parameters.
Stars: ✭ 14 (-75%)
Mutual labels:  webpack-plugin
taller-nuxt
🚀Explicación y código del taller de Nuxt para Wecodefest 2019
Stars: ✭ 20 (-64.29%)
Mutual labels:  nuxt
board
A complete admin board template with a large variety of elements and components, based on blexar CSS framework.
Stars: ✭ 55 (-1.79%)
Mutual labels:  nuxt
create-nuxt-tailwind-app
[DEPRECATED] Use create-nuxt-app, they added full tailwindcss & purgecss support
Stars: ✭ 32 (-42.86%)
Mutual labels:  nuxt

logo


NPM version NPM download CircleCI $donate

Please consider starring the project to show your ❤️ and support.

Introduction

Webpack terminal information to browser.

This plugin is recommended for webpack-based app bundler.

Install

yarn add loading-screen -D

Using poi? Go poi-plugin-loading-screen

Usage

In your webpack.config.js:

const LoadingScreenPlugin = require('loading-screen')

module.exports = {
  plugins: [new LoadingScreenPlugin()]
}

API

new LoadingScreenPlugin(options)

host

  • Type: string
  • Default: 'localhost'

The loading screen server host.

P.S. CANNOT be the same as the app server host.

port

  • Type: number
  • Default: process.env.port || 4000

The loading screen server port.

callback

  • Type: (req, res) => void
  • DefaultBehavior: Print loading screen server message.

The loading screen server callback.

baseURL

  • Type: string
  • Default: '/'

Similiar with webpack.output.publicPath.

logo

  • Type: url | HTML.innerHTML
  • Default: 'https://webpack.js.org/assets/icon-square-big.svg' which mean is webpack logo

Set url to display your prefer logo for loading screen.

Or with regular HTML:

new LoadingScreenPlugin({
  logo: '<div>my logo</div>'
})

theme

  • Type: ThemeConfig
  • Default: DefaultThemeConfig

Customize loading screen progress bar color.

interface ThemeConfig {
  client?: string
  server?: string
  modern?: string
}

const DefaultThemeConfig = {
  client: '#8ed5fb',
  server: '#1b78bf',
  modern: '#2f495e'
}

env

  • Type: 'development' | 'production'
  • Default: process.env.NODE_ENV

Enable loading screen when is 'development', disable otherwise.

handler

  • Type: (per, message, ...details) => void

Progress hooks report details.

Reference: https://webpack.js.org/plugins/progress-plugin/

showPercent

  • Type: boolean
  • Default: true

Credits

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

loading-screen © EVILLT, Released under the MIT License.

Authored and maintained by EVILLT with help from contributors (list).

evila.me · GitHub @evillt · Twitter @evillt

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].