Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Webpack 3 触ってみた

puku0x
July 19, 2017

Webpack 3 触ってみた

puku0x

July 19, 2017
Tweet

More Decks by puku0x

Other Decks in Technology

Transcript

  1. ݁Ռ const { CommonsChunkPlugin, ModuleConcatenationPlugin } = require('webpack').optimize; "plugins": [

    new ModuleConcatenationPlugin() ], αΠζ Ϗϧυ࣌ؒ ϓϥάΠϯͳ͠ ,# T ϓϥάΠϯ͋Γ ˞ ,# T ※ webpack.config.jsʹҎԼΛ௥Ճ
  2. ஫ҙ఺ • ModuleConcatenationPlugin࢖༻࣌
 • UglifyJSPlugin͸ผύοέʔδʹ { presets: [["es2015", { "modules":

    false }]] } npm i -D git://github.com/mishoo/UglifyJS2#harmony-v2.8.22 npm i -D uglifyjs-webpack-plugin