-
布局圖查看全部
-
安裝 某個(gè)generator-查看全部
-
git clone url yo react-webpack gallery 用了yo 里的react-webpack查看全部
-
localhost:8000/webpack-dev-server查看全部
-
yeomen了解查看全部
-
scrollWidth:對(duì)象的實(shí)際內(nèi)容的寬度,不包邊線寬度,會(huì)隨對(duì)象中內(nèi)容超過可視區(qū)后而變大。 clientWidth:對(duì)象內(nèi)容的可視區(qū)的寬度,不包滾動(dòng)條等邊線,會(huì)隨對(duì)象顯示大小的變化而改變。 offsetWidth:對(duì)象整體的實(shí)際寬度,包滾動(dòng)條等邊線,會(huì)隨對(duì)象顯示大小的變化而改變。查看全部
-
test查看全部
-
sass 改scss查看全部
-
關(guān)于generator-react-webpack2.0版,目錄結(jié)構(gòu)大變樣,已經(jīng)是只需要webpack就能啟動(dòng)項(xiàng)目,我理了一下其目錄。 |____.babelrc ES6配置文件 |____.editorconfig EditorConfig插件配置文件,用于統(tǒng)一編碼風(fēng)格。 |____.eslintrc ESLint配置文件 |____.gitignore 需要git同步時(shí)忽略文件夾的配置文件 |____.yo-rc.json 未知 |____cfg 這里存放webpack配置 | |____base.js webpack基礎(chǔ)配置 | |____defaults.js webpack一些其他的默認(rèn)配置 | |____dev.js 測試環(huán)境的webpack配置,啟動(dòng)npm run start的時(shí)候會(huì)使用這份webpack設(shè)置。 | |____dist.js 線上環(huán)境的webpack配置,啟動(dòng)npm run dist的時(shí)候會(huì)使用。 | |____test.js 做單元測試的時(shí)候使用,npm run test |____dist webpack輸出目錄 | |____README.md | |____static | | |____favicon.ico | | |____README.md |____karma.conf.js 單元測試配置文件 |____npm-debug.log 日志文件 |____package.json 重要!包結(jié)構(gòu)配置文件,并且存放了啟動(dòng)腳本,npm script |____server.js node服務(wù)器,用于本地啟動(dòng)這個(gè)項(xiàng)目,正是這個(gè)腳本啟動(dòng)了webpack編譯。 |____src 源代碼目錄 |____test 單元測試目錄 |____webpack.config.js 重要,webpack配置文件入口查看全部
-
npm ls -g --depth=1 2>/dev/null | grep generator- npm全局安裝的列表,深度為1層 錯(cuò)誤標(biāo)準(zhǔn)輸出重定向到空設(shè)備文件 管道符號(hào) 在全局安裝列表中找geneartor-開頭的包查看全部
-
webpack config: (1)webpack.config.js : for developing ,code was rung in the RAM ,not on dist serving the webpack-dev-server, watch changes and recompile(runing code on RAM),task list cheak grammar and transpiling the ES6 and sass .etc for module. (2)webpack.confing.js : for distribution,code was compiled and bulid on dist. some extra tasks in needed from plugins ,just like : Dedupe \ Ugliff and so on .查看全部
-
about the error run the last version react-webpack,and its solution: (1) use the old version: cnpm install -g generator-react-webpack@1.2.11; (2) finish build the all file after yo ,and ctrl-c and cnpm install (3) "grunt serve " Error missing the moudle "file-loader" : cnpm i file-loader查看全部
-
根目錄熱更新查看全部
-
前端自動(dòng)化工具:grunt,gulp,webpack查看全部
-
舞臺(tái)位置排布查看全部
舉報(bào)
0/150
提交
取消