Git Product home page Git Product logo

grafana-plugin-template-webpack's Introduction

Webpack Template for Grafana plugins development

Grafana plugin webpack version

Features

  • Uses npm instead of bower
  • Avoid using /external folder with libs’ sources (but you can, if you want)
  • Smaller resulting bundle compared to Grunt build
  • All webpack features available
  • SASS support with separate styles for dark and light Grafana themes
  • Debugging with vscode-chrome-debug

Build plugin

npm install
npm run build

Styles

There are template SASS files at src/css/.

Change root tag in SASS files to default Grafana tag (see example below) with ID of your plugin in order to prevent CSS conflicts between plugins.

Root tag example: panel-plugin-grafana-plugin-template-webpack (where grafana-plugin-template-webpack is ID of your plugin).

If you don't need separate styles for for dark and light themes - follow comments in module.js.

If you want to use CSS instead of SASS - just change files extensions at src/css/ and in module.js.

See also

About CorpGlory Inc.

The project developed by CorpGlory Inc., a company which provides high quality software development, data visualization, Grafana and monitoring consulting.

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.