Coder Social home page Coder Social logo

micooz / es6-webpack2-starter Goto Github PK

View Code? Open in Web Editor NEW
107.0 2.0 20.0 209 KB

:rocket: A template project for es6/7, webpack2/3, sass and postcss

License: MIT License

JavaScript 95.94% CSS 1.93% HTML 2.14%
es6 webpack2 template starter sass webpack webpack3 cssmodules es7

es6-webpack2-starter's Introduction

es6-webpack2-starter

npm npm David David %e2%9d%a4

A template project for ECMAScript(latest), webpack3, sass and postcss.

Features

  • es6: by babel and it's presets and plugins
  • css module: by css-loader
  • sass: by sass-loader
  • webpack3 provides faster compilation
  • auto-reload by webpack-dev-server

Installation

$ npm install
# or
$ yarn install

Configuration

  1. Copy then rename env.example.js to env.js if it is not done automatically by postinstall.

You can custom your local environment via env.js, so that it does not affect others.

Run in development

$ npm start

Build for production

$ npm run build

This will generator minified css and scripts to dist/.

Proxy

You can change your proxy rules in proxy/rules.

Need Help?

Ask questions here.

Any advise?

PR welcome here.

Contributors

Micooz [email protected]

License

MIT

es6-webpack2-starter's People

Contributors

greenkeeperio-bot avatar micooz avatar yihou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

es6-webpack2-starter's Issues

how to create few routes/pages?

There is index.html file, but if i want to have more pages like - /about, /products, etc..
how i can add new pages?
screen shot 2017-07-10 at 11 15 41
At this moment i did it this way, but if there is will be 20 pages??

Could you explain the Proxy stuff

I am a little unclear on what the proxy stuff is for and why it is referencing github and npm a clarification would be great :).

Cheers.

images processing

screen shot 2017-07-10 at 11 17 31

As you see, each image that i want to use i should require, but how to work with images with more comfortable way(without need to require each one)?

disable errors in browser

Hello! Thanks for making this! I noticed that whenever eslint tries to warn or error, the message appears on the console and on the browser. I was wondering if there was a way to prevent it from appearing on the browser. I'm kind of new to React/ES6/Babel so I'm not sure how to go about this.

Interested in a typescript branch?

As an experiment I tried to add typescript to the webpack pipeline, it seems I got it working easily, but I haven't tested production builds and other details yet.

Would you be interested in making a typescript branch, to show an alternative version to users?

live reload

Hi!
how to setup this boilerplate to live reload, when changes css, html & js?

Missing lint config?

Is the ESLint config missing? I did a fresh install after cloning and npm run start failed because there was no lint config. Does this seem right?

Thanks!

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.