webpack2 に最近移行しました。 その時の知見とせっかくなので tree shaking が実際に中でやってることを追ってみたので紹介。webpack2 移行時の注意 基本的にはほぼここに書いてあるとおり。 Migrating from v1 to v2 かいつまんで説明すると、configファイルの書き方がガラッと変わって、 module.loaders が module.rules になったり、 resolve.root がなくなって resolve.modules に変わったり。この辺の書き換えは割りとすんなりいくはず。 辛いのはpostcss周りのオプションの渡し方辺り。これまではconfigのrootにpostcssプロパティを用意してそこに記述できたが、その記述はできなくなり、webpack.LoaderOptionsPlugin 経由で渡すか postcss.con
Last month we shipped our first Release Candidate forwebpack 2.2. Since then, we’ve been hard at work fixing any bugs that youreported. Not only that, but we’ve merged over 220 pullrequests from the community in helping us refactor our core library to ES2015 (yes, this means our minimum supported NodeJS version is now 4.3). On behalf of the entirewebpack team, I’m proud to announce that webpac

この記事はJavaScript Advent Calendar 2015 10日目の記事です。 去年は主にgulp にフォーカスした内容でしたが、今回はJSのビルドとテストにフォーカスした入門記事です。 やること ES2015で書いたコードをWebpackでビルドする babel@6系を使う Mocha + power-assert + jsdom でテストを書く やらないことgulpまわりReact.jsCSSビルドまわり 最終的なコードはこちらに上げておきました(すごく簡素な出来です)。GitHub - sskyu/webpack-power-assert-jsdom-skeleton はじめに 今年はReact.jsがJSerの中で定着した感がありました。 Fluxの考え方を昇華させたReduxがFlux系フレームワークでデファクトになりそうな雰囲気を出しつつ、React


Clone via HTTPS Clone with Git or checkout with SVN using the repository’s web address. browserify forwebpack users There's been a strange explosion in misinformation about browserify recently, particularly in comparisons towebpack. Generally speaking, most of this confusion stems from howwebpack is more willing to pull features intoits core to ease discoverability while browserify is more lik


ModuleBundler Think Browserify with moreWebpack vs Browserify Works with almost any module systemAMD, CJS, UMD, Component, Latest Hipster Module System (LHMS) Can require inCSS, Images, Fontsetc. Uses CJS syntax to load modules varangular = require('angular');angular.controller('foo', function() { }); Loaders Like browserify transforms ThinkCSS preprocessors ES6 Module Transpilers Convert
1リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く