Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • kresus kresus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 142
    • Issues 142
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • kresusapp
  • kresuskresus
  • Merge requests
  • !435

Webpack configuration

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Phyks requested to merge phyks/kresus:webpack into master Jul 24, 2017
  • Overview 75
  • Commits 12
  • Pipelines 73
  • Changes 49

Use Webpack to build the JS files from the client code. With this commit, all the client JS code is built using Webpack.

Resulting file is 1.38MB large in production, and takes about 30 seconds to build+minify on my Macbook Pro.

Left to do:

  • Build the CSS files as well as all the other artifacts
  • Test it thoroughly. Test on multiple devices. Test with a prefix in the URL.
  • More optimizations, such as splitting in chunks.
  • Use bootstrap.native (https://github.com/thednp/bootstrap.native) to drop the dependency on jQuery. On hold
  • Give it a try to spectrum (http://bgrins.github.io/spectrum/) rc-color-picker colorpicker to drop the dependency on jQuery.
  • Build sprites with webpack.
  • Remove c3/d3 and keep only dygraphs (or the contrary, but keep only one graph library). On hold

Closes #607 (closed)

Edited Jul 26, 2017 by Phyks
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: webpack