/d3-webpack-boilerplate

D3.js boilerplate with webpack, es6, sass, css autoprefixer, hot module reload

Primary LanguageJavaScript

D3.js Webpack Boilerplate

Instructions

  • Clone repo - git clone https://github.com/kelvynmarte/d3-webpack-boilerplate.git
  • Change to the cloned repo's folder - cd d3-webpack-boilerplate
  • Install dependencies - npm install
  • Start the server - npm start
  • Navigate to localhost:3500 in the browser.
  • Enjoy!
  • Build – npm run build
  • Publish the dist folder!

Content

  • Webpack Build and Development with Hot Module Reload, AutoDLL and HardSourceWebpackPlugin for a faster refresh
  • D3.js example using topojson, tsv and json
  • ES6 support
  • SASS support
  • CSS autoprefixer with postcss (IE10 and browsers with > 1% distribution) – edit browserslist in package.json to change supported browsers
  • Hot Module Reload - browser reloads whenever a js or scss file changes.
  • normalize.css