webpack-express-boilerplate

A boilerplate for running a Webpack workflow in Node express

  • 所有者: christianalfoni/webpack-express-boilerplate
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

webpack-express-boilerplate

A boilerplate for running a Webpack workflow in Node express

Please read the following article: The ultimate Webpack setup to know more about this boilerplate.

Major update to project

Inspired by this project and the evolving of react-transform and CSS Modules, this project has gotten a major upgrade.

NOTE! Use the latest version of Node, 4.x.x.

Install and Running

git clone https://github.com/christianalfoni/webpack-express-boilerplate.git

or just export the files:

svn export https://github.com/christianalfoni/webpack-express-boilerplate/trunk ./dir

  1. cd webpack-express-boilerplate
  2. npm install
  3. npm start
  4. navigate to http://localhost:3000 in your browser of choice.

Overview

React by default

The project runs with React by default and hot replacement of changes to the modules. Currently it is on 0.14.3.

CSS Modules

CSS files loaded into components are locally scoped and you can point to class names with javascript. You can also compose classes together, also from other files. These are also hot loaded. Read more about them here.

To turn off CSS Modules remove it from the webpack.config.js file.

Babel and Linting

Both Node server and frontend code runs with Babel. And all of it is linted. With atom you install the linter package, then linter-eslint and linter-jscs. You are covered. Also run npm run eslint or npm run jscs to verify all files. I would recommend installing language-babel package too for syntax highlighting

Beautify

With a beautify package installed in your editor it will also do that

主要指標

概覽
名稱與所有者christianalfoni/webpack-express-boilerplate
主編程語言JavaScript
編程語言CSS (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2015-04-18 12:31:49
推送於2021-09-02 07:59:00
最后一次提交2017-02-09 10:10:51
發布數0
用户参与
星數1.4k
關注者數34
派生數287
提交數71
已啟用問題?
問題數59
打開的問題數26
拉請求數18
打開的拉請求數4
關閉的拉請求數6
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?