This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param {Compilation} compilation Webpack compilation | |
* @returns {{ | |
* byChunkName: {chunkName: Array<{name: string, source: string}>}, | |
* extra: Array<{name: string, source: string}> | |
* }} | |
*/ | |
var getAssets = function (compilation) { | |
var EXTRA_ASSETS_CHUNK_NAME = '__extra_assets__'; | |
var stats = compilation.getStats().toJson(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
var MemoryFS = require('memory-fs'); | |
var SingleEntryDependency = require('webpack/lib/dependencies/SingleEntryDependency'); | |
var fs = new MemoryFS(); | |
fs.mkdirpSync('/src'); | |
fs.writeFileSync('/src/app.js', 'require("./dep.js")', 'utf-8'); | |
fs.writeFileSync('/src/dep.js', 'module.exports = function(msg){console.log(msg)}', 'utf-8'); | |
fs.writeFileSync('/src/extra-entry.js', 'require("./dep.js")', 'utf-8'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header> — для хедера. | |
<footer> — для футера. | |
<nav> — для главной навигации в хедере. | |
<main> — для основного контента страницы. Содержимое должно быть уникальным и не включать типовые блоки вроде шапки сайта, подвала, навигации, боковой панели, формы поиска. Может содержать теги заголовков, параграфы, картинки и тд. | |
<section> — для разделов контента страницы. Если страница является большой статьёй, логично разбить её на секции, каждая из которых будет содержать свой заголовок. | |
<article> — для статей и постов. Особенно хорошо для списков статей и новостей. | |
<figure> — для медиа-объектов типа картинки, видео, слайдов. | |
<aside> — для бокового меню. | |
<address> — для контактной информации офисов. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index: | |
path: / | |
title: Транспортная компания ВСТ | |
defaults: | |
_controller: IndexController:indexAction | |
api: | |
path: /api/ | |
title: API — Разработчикам | |
defaults: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "2IyiINAi-KU", | |
"title": "Алма-АТА", | |
"description": "Emmet - Multiple Selection in PhpStorm", | |
"pubDate": "Dow, 7 Mar 2014 00:00: +0000", | |
"thumbnailUrl": "http://i.ytimg.com/vi/-A9BwBA3s8I/0.jpg", | |
"categories": ["phpstorm", "dottrace"], | |
"playlistId": "PLQ176FUIyIUb0zTe7k4ZKkhMsR-slKu3w", | |
"playlistCategory": "Basics", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "893427598345734", | |
"title": "Super Page", | |
"pages": [ | |
{ | |
"id": "235g", | |
"title": "SubSuper Page 2" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"categories": [ | |
{ | |
"pycharm": { | |
"name": "pycharm", | |
"displayName": "PyCharm" | |
} | |
}, | |
{ |
NewerOlder