éçºç°å¢
èªåã使ã£ã¦ããã¨ããã ããç°¡åã«ã詳ããã¯https://webpack.js.org/guides/migrating 以ä¸ãwebpack.config.jsã®å¤æ´ç¹: resolve.extenstions 空ã®æååã¯å¿ è¦ãªããªã£ãã®ã§åé¤ãããã¡ãªã¿ã«ããã©ã«ãã§ã¯.jsã.jsonãresolveããã¦ããã // v1 reâ¦
React Hot Loader + Browsersync React Hot Loader ã使ãã°ãã¨ãã£ã¿ãä¿åããæç¹ã§ãReact ã³ã³ãã¼ãã³ãã®å¤æ´ãæ¤ç¥ããããã©ã¦ã¶ã®æ´æ°ãèªåã§è¡ããã¾ããããã«ãReact Hot Loader ã¯HotModuleReplacementPlugin(HMR) ã使ç¨ãã¦ãããããæ´æ°â¦
ãããããåé¡ã«ç´é¢ããã®ã§ãã¡ã¢ãã¦ããã åé¡ æ¬¡ã®ããã«ãjQueryã§ã³ã¼ã«ããã¯é¢æ°ã«ã¢ãã¼é¢æ°ãç¨ããã¹ã¯ãªãããè¨è¿°ããã $("item > title").each(() => { let title = $(this).text(); console.log(title); }); ãã®ES6ã®æ§æããBabelã§ES5â¦
nginxãbrewã§ã¤ã³ã¹ãã¼ã« $ brew install nginx nginxã³ãã³ããæã¤ã¨ã³ãã³ããè¦ã¤ãããªã $ nginx nginx: command not found ã¤ã³ã¹ãã¼ã«ã¯ããã¦ããã, æå¹åããã¦ããªãã¨ã®ã㨠$ brew install nginx Warning: nginx-1.8.0 already installed,â¦
åã«ãè¨äºãæ¸ãã¾ããããå°ãåå¼·ããä¸ã§ä»ã«ã解決æ³ãè¦ã¤ããã®ã§ã¾ã¨ãã¦ããã¾ãã ãã¦ãã¯ã©ã¤ã¢ã³ããµã¤ãã®JavaScriptã§ã¯requireã使ã£ã¦Node.jsã®ã¢ã¸ã¥ã¼ã«ãèªã¿è¾¼ããã¨ã¯ã§ãã¾ããããããã£ã¦ä»¥ä¸ã®æ§ãªãã¼ã«ãçµã¿è¾¼ãå¿ è¦ãããã¾ãâ¦
1æ¥ã«ä½åãã®ãããªimport宣è¨ãæ¸ãã¦ãã¾ããï¼ import React from 'react' import ReactDOM 'react-dom' import $ from 'jquery' ãã¡ã¤ã«ãã¨ã«ãã¡ãã¡importããã®ã¯ããã©ãããã§ããããæ¸ãå¿ããã¨ã¨ã©ã¼ãèµ·ãããã ããã§æ´»èºããã®ãWebpackâ¦
Webpack + React + ES6 Webpack + React + ES6ã®æå°æ§æãèãã¦ã¿ãã ãã®è¨äºã¯æç³å®¶ãµã³ã¿ãè¦ãªããæ¸ããã¾ããã (注: 2016/9/25 å 容ãå¤§å¹ ã«æ¹å®ãWebpackãReactã®ææ°çã«å¯¾å¿) é¢é£ããéå»è¨äº Webpackå ¥éç·¨ uraway.hatenablog.com Gulp + Bâ¦
fluxã§ã®éçºãè¦æ®ãã¦ãgulpã使ã£ãéçºç°å¢ãä½ã£ã¦ã¿ãã (Gulp + Browserify + ES6 + Babelify + Watchify + Brower-sync) åæç¥è gulp ES6(ES2015) ææ gulp...èªåã¿ã¹ã¯ç®¡çãã¼ã« Browsersync...ãã©ã¦ã¶ã®èªåãªãã¼ã browserify...ä¾åç©ãâ¦
åèï¼ Using ES6 with gulp â Mark Goodyear â Front-end developer and designer gulp 3.9ããgulpfile.jsã«ES6ã使ãã¾ãã JavaScriptã使ããªãæ©ãã«æ £ãã¦ããããã¨ããã åã®è¨äºã§ä½ã£ãgulpfileãES6ã§æ¸ãæãã¦ã¿ã¾ãããã uraway.hatenablogâ¦
横çããªãã§ã²ã¨ã¤ã¥ã¤ç解ãã¦ãããã¨ã«ããã ä»åã¯Gulpã¨Browserifyãåããã¦ä½¿ã£ã¦ã¿ãã åèï¼ javascript - Why do I have to use vinyl-source-stream with gulp? - Stack Overflow gulp/API.md at master · gulpjs/gulp · GitHub Gulp + Browseâ¦
åèï¼ javascript - Client on node: Uncaught ReferenceError: require is not defined - Stack Overflow Uncaught ReferenceError: require is not defined nodeã®ã¢ã¸ã¥ã¼ã«ãvar foo = require('foo');ã§èªã¿è¾¼ã¾ããã⦠ããããã©ã¦ã¶ã§ç¢ºèªããã¨ãâ¦
ãµã¼ãã¼åèµ·åããã©ã¦ã¶ãªãã¼ãã¨ãé¢åãããï¼ã£ã¦ãã¨ã§ãããããèªåã§è¡ã£ã¦ãããBowserSyncã¢ã¸ã¥ã¼ã«ã¨ãã¤ãã§ã«ã¢ããªã®éª¨æ ¼ãä½ã£ã¦ãããexpressãå°å ¥ããæé ãã¾ã¨ãã¾ããåèï¼gulp + node + express 㧠BrowserSync 使ãã - ã¶ãã¼ãâ¦
è©°ã¾ã£ãã®ã§ã¡ã¢ã¨ãã¦æ®ãã¦ããã¾ããdotinstall.com dotinstallã®ã³ã³ãã³ãã®æµãã«å¾ã£ã¦ãCentOSã«ãã£ã¦åããã¼ã«ã«éçºç°å¢ï¼local serverï¼ãå°å ¥ãã¦ã¿ã¾ãããã