honghaitzz11 6 年 前
コミット
69d70a2473
100 ファイル変更350 行追加84 行削除
  1. BIN
      .DS_Store
  2. BIN
      1-3安装与使用.zip
  3. BIN
      1-4使用Loader.zip
  4. BIN
      1-5使用Plugin.zip
  5. BIN
      1-6使用DevServer.zip
  6. 0 2
      1入门/1-1前端的发展.html
  7. 0 2
      1入门/1-2常见的构建工具及对比.html
  8. 0 2
      1入门/1-3安装与使用.html
  9. 0 2
      1入门/1-4使用Loader.html
  10. 0 2
      1入门/1-5使用Plugin.html
  11. 0 2
      1入门/1-6使用DevServer.html
  12. 0 2
      1入门/1-7核心概念.html
  13. 0 2
      1入门/index.html
  14. 10 0
      1入门/other/1-3安装与使用/index.html
  15. 4 0
      1入门/other/1-3安装与使用/main.js
  16. 11 0
      1入门/other/1-3安装与使用/package.json
  17. 7 0
      1入门/other/1-3安装与使用/show.js
  18. 12 0
      1入门/other/1-3安装与使用/webpack.config.js
  19. 41 0
      1入门/other/1-3安装与使用/yarn-error.log
  20. 10 0
      1入门/other/1-4使用Loader/index.html
  21. 3 0
      1入门/other/1-4使用Loader/main.css
  22. 6 0
      1入门/other/1-4使用Loader/main.js
  23. 13 0
      1入门/other/1-4使用Loader/package.json
  24. 7 0
      1入门/other/1-4使用Loader/show.js
  25. 21 0
      1入门/other/1-4使用Loader/webpack.config.js
  26. 11 0
      1入门/other/1-5使用Plugin/index.html
  27. 3 0
      1入门/other/1-5使用Plugin/main.css
  28. 6 0
      1入门/other/1-5使用Plugin/main.js
  29. 14 0
      1入门/other/1-5使用Plugin/package.json
  30. 7 0
      1入门/other/1-5使用Plugin/show.js
  31. 31 0
      1入门/other/1-5使用Plugin/webpack.config.js
  32. 10 0
      1入门/other/1-6使用DevServer/index.html
  33. 3 0
      1入门/other/1-6使用DevServer/main.css
  34. 6 0
      1入门/other/1-6使用DevServer/main.js
  35. 14 0
      1入门/other/1-6使用DevServer/package.json
  36. 7 0
      1入门/other/1-6使用DevServer/show.js
  37. 21 0
      1入门/other/1-6使用DevServer/webpack.config.js
  38. BIN
      2-9多种配置类型.zip
  39. 0 2
      2配置/2-10配置总结.html
  40. 0 2
      2配置/2-1Entry.html
  41. 0 2
      2配置/2-2Output.html
  42. 0 2
      2配置/2-3Module.html
  43. 0 2
      2配置/2-4Resolve.html
  44. 0 2
      2配置/2-5Plugins.html
  45. 0 2
      2配置/2-6DevServer.html
  46. 0 2
      2配置/2-7其它配置项.html
  47. 0 2
      2配置/2-8整体配置结构.html
  48. 0 2
      2配置/2-9多种配置类型.html
  49. 0 2
      2配置/index.html
  50. 0 0
      2配置/other/2-9多种配置类型/main.js
  51. 12 0
      2配置/other/2-9多种配置类型/package.json
  52. 45 0
      2配置/other/2-9多种配置类型/webpack.config.js
  53. BIN
      3-10管理多个单页应用.zip
  54. BIN
      3-11构建同构应用.zip
  55. BIN
      3-12构建Electron应用.zip
  56. BIN
      3-13构建Npm库.zip
  57. BIN
      3-14构建离线应用.zip
  58. BIN
      3-15搭配NpmScript.zip
  59. BIN
      3-17通过Node.jsAPI启动Webpack.zip
  60. BIN
      3-18使用WebpackDevMiddleware.zip
  61. BIN
      3-19加载图片file-loader.zip
  62. BIN
      3-1使用ES6语言.zip
  63. BIN
      3-20加载SVG-raw-loader.zip
  64. BIN
      3-20加载SVG-svg-inline-loader.zip
  65. BIN
      3-2使用TypeScript语言.zip
  66. BIN
      3-3使用Flow检查器.zip
  67. BIN
      3-4使用SCSS语言.zip
  68. BIN
      3-5使用PostCSS.zip
  69. BIN
      3-6使用React框架Babel.zip
  70. BIN
      3-6使用React框架TypeScript.zip
  71. BIN
      3-7使用Vue框架Babel.zip
  72. BIN
      3-7使用Vue框架TypeScript.zip
  73. BIN
      3-8使用Angular2框架.zip
  74. BIN
      3-9为单页应用生成HTML.zip
  75. 0 2
      3实战/3-10管理多个单页应用.html
  76. 0 2
      3实战/3-11构建同构应用.html
  77. 0 2
      3实战/3-12构建Electron应用.html
  78. 0 2
      3实战/3-13构建Npm模块.html
  79. 0 2
      3实战/3-14构建离线应用.html
  80. 0 2
      3实战/3-15搭配NpmScript.html
  81. 0 2
      3实战/3-16检查代码.html
  82. 0 2
      3实战/3-17通过Node.jsAPI启动Webpack.html
  83. 0 2
      3实战/3-18使用WebpackDevMiddleware.html
  84. 0 2
      3实战/3-19加载图片.html
  85. 0 2
      3实战/3-1使用ES6语言.html
  86. 0 2
      3实战/3-20加载SVG.html
  87. 0 2
      3实战/3-21加载SourceMap.html
  88. 0 2
      3实战/3-22实战总结.html
  89. 0 2
      3实战/3-2使用TypeScript语言.html
  90. 0 2
      3实战/3-3使用Flow检查器.html
  91. 0 2
      3实战/3-4使用SCSS语言.html
  92. 0 2
      3实战/3-5使用PostCSS.html
  93. 0 2
      3实战/3-6使用React框架.html
  94. 0 2
      3实战/3-7使用Vue框架.html
  95. 0 2
      3实战/3-8使用Angular2框架.html
  96. 0 2
      3实战/3-9为单页应用生成HTML.html
  97. 0 2
      3实战/index.html
  98. 6 0
      3实战/other/3-10管理多个单页应用/.babelrc
  99. 3 0
      3实战/other/3-10管理多个单页应用/common.css
  100. 6 0
      3实战/other/3-10管理多个单页应用/google_analytics.js

BIN
.DS_Store


BIN
1-3安装与使用.zip


BIN
1-4使用Loader.zip


BIN
1-5使用Plugin.zip


BIN
1-6使用DevServer.zip


ファイルの差分が大きいため隠しています
+ 0 - 2
1入门/1-1前端的发展.html


ファイルの差分が大きいため隠しています
+ 0 - 2
1入门/1-2常见的构建工具及对比.html


ファイルの差分が大きいため隠しています
+ 0 - 2
1入门/1-3安装与使用.html


ファイルの差分が大きいため隠しています
+ 0 - 2
1入门/1-4使用Loader.html


ファイルの差分が大きいため隠しています
+ 0 - 2
1入门/1-5使用Plugin.html


ファイルの差分が大きいため隠しています
+ 0 - 2
1入门/1-6使用DevServer.html


ファイルの差分が大きいため隠しています
+ 0 - 2
1入门/1-7核心概念.html


ファイルの差分が大きいため隠しています
+ 0 - 2
1入门/index.html


+ 10 - 0
1入门/other/1-3安装与使用/index.html

@@ -0,0 +1,10 @@
+<html>
+<head>
+  <meta charset="UTF-8">
+</head>
+<body>
+<div id="app"></div>
+<!--导入 webpack 输出的 JS 文件-->
+<script src="./dist/bundle.js"></script>
+</body>
+</html>

+ 4 - 0
1入门/other/1-3安装与使用/main.js

@@ -0,0 +1,4 @@
+// 通过 CommonJS 规范导入 show 函数
+const show = require('./show.js');
+// 执行 show 函数
+show('Webpack');

+ 11 - 0
1入门/other/1-3安装与使用/package.json

@@ -0,0 +1,11 @@
+{
+  "name": "dive-into-webpack",
+  "version": "1.0.0",
+  "scripts": {
+    "build": "webpack"
+  },
+  "dependencies": {},
+  "devDependencies": {
+    "webpack": "^3.4.0"
+  }
+}

+ 7 - 0
1入门/other/1-3安装与使用/show.js

@@ -0,0 +1,7 @@
+// 操作 DOM 元素,把 content 显示到网页上
+function show(content) {
+  window.document.getElementById('app').innerText = 'Hello,' + content;
+}
+
+// 通过 CommonJS 规范导出 show 函数
+module.exports = show;

+ 12 - 0
1入门/other/1-3安装与使用/webpack.config.js

@@ -0,0 +1,12 @@
+const path = require('path');
+
+module.exports = {
+  // JS 执行入口文件
+  entry: './main.js',
+  output: {
+    // 把所有依赖的模块合并输出到一个 bundle.js 文件
+    filename: 'bundle.js',
+    // 输出文件都放到 dist 目录下
+    path: path.resolve(__dirname, './dist'),
+  }
+};

+ 41 - 0
1入门/other/1-3安装与使用/yarn-error.log

@@ -0,0 +1,41 @@
+Arguments: 
+  /usr/local/Cellar/node/11.10.0/bin/node /usr/local/Cellar/yarn/1.13.0/libexec/bin/yarn.js
+
+PATH: 
+  /usr/local/sbin:/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home/bin:/Users/honghaitao/Library/Android/sdk/tools:/Users/honghaitao/Library/Android/sdk/platform-tools:/Users/honghaitao/development/flutter/bin:.:/Users/honghaitao/Library/Android/sdk/tools:/Users/honghaitao/Library/Android/sdk/platform-tools:/Users/honghaitao/development/flutter/bin:.
+
+Yarn version: 
+  1.13.0
+
+Node version: 
+  11.10.0
+
+Platform: 
+  darwin x64
+
+Trace: 
+  Error: Client network socket disconnected before secure TLS connection was established
+      at TLSSocket.onConnectEnd (_tls_wrap.js:1218:19)
+      at Object.onceWrapper (events.js:285:13)
+      at TLSSocket.emit (events.js:202:15)
+      at endReadableNT (_stream_readable.js:1129:12)
+      at processTicksAndRejections (internal/process/next_tick.js:76:17)
+
+npm manifest: 
+  {
+    "name": "dive-into-webpack",
+    "version": "1.0.0",
+    "scripts": {
+      "build": "webpack"
+    },
+    "dependencies": {},
+    "devDependencies": {
+      "webpack": "^3.4.0"
+    }
+  }
+
+yarn manifest: 
+  No manifest
+
+Lockfile: 
+  No lockfile

+ 10 - 0
1入门/other/1-4使用Loader/index.html

@@ -0,0 +1,10 @@
+<html>
+<head>
+  <meta charset="UTF-8">
+</head>
+<body>
+<div id="app"></div>
+<!--导入 webpack 输出的 JS 文件-->
+<script src="./dist/bundle.js"></script>
+</body>
+</html>

+ 3 - 0
1入门/other/1-4使用Loader/main.css

@@ -0,0 +1,3 @@
+#app {
+  text-align: center;
+}

+ 6 - 0
1入门/other/1-4使用Loader/main.js

@@ -0,0 +1,6 @@
+// 通过 CommonJS 规范导入 css 模块
+require('./main.css');
+// 通过 CommonJS 规范导入 show 函数
+const show = require('./show.js');
+// 执行 show 函数
+show('Webpack');

+ 13 - 0
1入门/other/1-4使用Loader/package.json

@@ -0,0 +1,13 @@
+{
+  "name": "dive-into-webpack",
+  "version": "1.0.0",
+  "scripts": {
+    "build": "webpack"
+  },
+  "dependencies": {},
+  "devDependencies": {
+    "css-loader": "^0.28.4",
+    "style-loader": "^0.18.2",
+    "webpack": "^3.4.0"
+  }
+}

+ 7 - 0
1入门/other/1-4使用Loader/show.js

@@ -0,0 +1,7 @@
+// 操作 DOM 元素,把 content 显示到网页上
+function show(content) {
+  window.document.getElementById('app').innerText = 'Hello,' + content;
+}
+
+// 通过 CommonJS 规范导出 show 函数
+module.exports = show;

+ 21 - 0
1入门/other/1-4使用Loader/webpack.config.js

@@ -0,0 +1,21 @@
+const path = require('path');
+
+module.exports = {
+  // JS 执行入口文件
+  entry: './main.js',
+  output: {
+    // 把所有依赖的模块合并输出到一个 bundle.js 文件
+    filename: 'bundle.js',
+    // 输出文件都放到 dist 目录下
+    path: path.resolve(__dirname, './dist'),
+  },
+  module: {
+    rules: [
+      {
+        // 用正则去匹配要用该 loader 转换的 css 文件
+        test: /\.css$/,
+        loaders: ['style-loader', 'css-loader'],
+      }
+    ]
+  }
+};

+ 11 - 0
1入门/other/1-5使用Plugin/index.html

@@ -0,0 +1,11 @@
+<html>
+<head>
+  <meta charset="UTF-8">
+  <link rel="stylesheet" href="./dist/main_1a87a56a.css">
+</head>
+<body>
+<div id="app"></div>
+<!--导入 webpack 输出的 JS 文件-->
+<script src="./dist/bundle.js"></script>
+</body>
+</html>

+ 3 - 0
1入门/other/1-5使用Plugin/main.css

@@ -0,0 +1,3 @@
+#app {
+  text-align: center;
+}

+ 6 - 0
1入门/other/1-5使用Plugin/main.js

@@ -0,0 +1,6 @@
+// 通过 CommonJS 规范导入 css 模块
+require('./main.css');
+// 通过 CommonJS 规范导入 show 函数
+const show = require('./show.js');
+// 执行 show 函数
+show('Webpack');

+ 14 - 0
1入门/other/1-5使用Plugin/package.json

@@ -0,0 +1,14 @@
+{
+  "name": "dive-into-webpack",
+  "version": "1.0.0",
+  "scripts": {
+    "build": "webpack"
+  },
+  "dependencies": {},
+  "devDependencies": {
+    "css-loader": "^0.28.4",
+    "extract-text-webpack-plugin": "^3.0.0",
+    "style-loader": "^0.18.2",
+    "webpack": "^3.4.0"
+  }
+}

+ 7 - 0
1入门/other/1-5使用Plugin/show.js

@@ -0,0 +1,7 @@
+// 操作 DOM 元素,把 content 显示到网页上
+function show(content) {
+  window.document.getElementById('app').innerText = 'Hello,' + content;
+}
+
+// 通过 CommonJS 规范导出 show 函数
+module.exports = show;

+ 31 - 0
1入门/other/1-5使用Plugin/webpack.config.js

@@ -0,0 +1,31 @@
+const path = require('path');
+const ExtractTextPlugin = require('extract-text-webpack-plugin');
+
+module.exports = {
+  // JS 执行入口文件
+  entry: './main.js',
+  output: {
+    // 把所有依赖的模块合并输出到一个 bundle.js 文件
+    filename: 'bundle.js',
+    // 输出文件都放到 dist 目录下
+    path: path.resolve(__dirname, './dist'),
+  },
+  module: {
+    rules: [
+      {
+        // 用正则去匹配要用该 loader 转换的 css 文件
+        test: /\.css$/,
+        use: ExtractTextPlugin.extract({
+          // 转换 .css 文件需要使用的 Loader
+          use: ['css-loader'],
+        }),
+      }
+    ]
+  },
+  plugins: [
+    new ExtractTextPlugin({
+      // 从 .js 文件中提取出来的 .css 文件的名称
+      filename: `[name]_[contenthash:8].css`,
+    }),
+  ]
+};

+ 10 - 0
1入门/other/1-6使用DevServer/index.html

@@ -0,0 +1,10 @@
+<html>
+<head>
+  <meta charset="UTF-8">
+</head>
+<body>
+<div id="app"></div>
+<!--导入 webpack 输出的 JS 文件-->
+<script src="bundle.js"></script>
+</body>
+</html>

+ 3 - 0
1入门/other/1-6使用DevServer/main.css

@@ -0,0 +1,3 @@
+#app {
+  text-align: center;
+}

+ 6 - 0
1入门/other/1-6使用DevServer/main.js

@@ -0,0 +1,6 @@
+// 通过 CommonJS 规范导入 css 模块
+require('./main.css');
+// 通过 CommonJS 规范导入 show 函数
+const show = require('./show.js');
+// 执行 show 函数
+show('Webpack');

+ 14 - 0
1入门/other/1-6使用DevServer/package.json

@@ -0,0 +1,14 @@
+{
+  "name": "dive-into-webpack",
+  "version": "1.0.0",
+  "scripts": {
+    "build": "webpack-dev-server --hot --devtool source-map"
+  },
+  "dependencies": {},
+  "devDependencies": {
+    "css-loader": "^0.28.4",
+    "style-loader": "^0.18.2",
+    "webpack": "^3.4.0",
+    "webpack-dev-server": "^2.6.1"
+  }
+}

+ 7 - 0
1入门/other/1-6使用DevServer/show.js

@@ -0,0 +1,7 @@
+// 操作 DOM 元素,把 content 显示到网页上
+function show(content) {
+  window.document.getElementById('app').innerText = 'Hello,' + content;
+}
+
+// 通过 CommonJS 规范导出 show 函数
+module.exports = show;

+ 21 - 0
1入门/other/1-6使用DevServer/webpack.config.js

@@ -0,0 +1,21 @@
+const path = require('path');
+
+module.exports = {
+  // JS 执行入口文件
+  entry: './main.js',
+  output: {
+    // 把所有依赖的模块合并输出到一个 bundle.js 文件
+    filename: 'bundle.js',
+    // 输出文件都放到 dist 目录下
+    path: path.resolve(__dirname, './dist'),
+  },
+  module: {
+    rules: [
+      {
+        // 用正则去匹配要用该 loader 转换的 css 文件
+        test: /\.css$/,
+        loaders: ['style-loader', 'css-loader'],
+      }
+    ]
+  }
+};

BIN
2-9多种配置类型.zip


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/2-10配置总结.html


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/2-1Entry.html


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/2-2Output.html


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/2-3Module.html


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/2-4Resolve.html


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/2-5Plugins.html


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/2-6DevServer.html


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/2-7其它配置项.html


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/2-8整体配置结构.html


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/2-9多种配置类型.html


ファイルの差分が大きいため隠しています
+ 0 - 2
2配置/index.html


+ 0 - 0
2配置/other/2-9多种配置类型/main.js


+ 12 - 0
2配置/other/2-9多种配置类型/package.json

@@ -0,0 +1,12 @@
+{
+  "name": "dive-into-webpack",
+  "version": "1.0.0",
+  "scripts": {
+    "build:dev": "webpack",
+    "build:dist": "webpack --env.production"
+  },
+  "dependencies": {},
+  "devDependencies": {
+    "webpack": "^3.4.0"
+  }
+}

+ 45 - 0
2配置/other/2-9多种配置类型/webpack.config.js

@@ -0,0 +1,45 @@
+const path = require('path');
+const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');
+
+module.exports = function (env = {}, argv) {
+  const plugins = [];
+
+  const isProduction = env['production'];
+
+  // 在生成环境才压缩
+  if (isProduction) {
+    plugins.push(
+      // 压缩输出的 JS 代码
+      new UglifyJsPlugin({
+        // 最紧凑的输出
+        beautify: false,
+        // 删除所有的注释
+        comments: false,
+        compress: {
+          // 在UglifyJs删除没有用到的代码时不输出警告
+          warnings: false,
+          // 删除所有的 `console` 语句,可以兼容ie浏览器
+          drop_console: true,
+          // 内嵌定义了但是只用到一次的变量
+          collapse_vars: true,
+          // 提取出出现多次但是没有定义成变量去引用的静态值
+          reduce_vars: true,
+        }
+      })
+    )
+  }
+
+  return {
+    // JS 执行入口文件
+    entry: './main.js',
+    output: {
+      // 把所有依赖的模块合并输出到一个 bundle.js 文件
+      filename: 'bundle.js',
+      // 输出文件都放到 dist 目录下
+      path: path.resolve(__dirname, './dist'),
+    },
+    plugins: plugins,
+    // 在生成环境不输出 Source Map
+    devtool: isProduction ? undefined : 'source-map',
+  };
+}

BIN
3-10管理多个单页应用.zip


BIN
3-11构建同构应用.zip


BIN
3-12构建Electron应用.zip


BIN
3-13构建Npm库.zip


BIN
3-14构建离线应用.zip


BIN
3-15搭配NpmScript.zip


BIN
3-17通过Node.jsAPI启动Webpack.zip


BIN
3-18使用WebpackDevMiddleware.zip


BIN
3-19加载图片file-loader.zip


BIN
3-1使用ES6语言.zip


BIN
3-20加载SVG-raw-loader.zip


BIN
3-20加载SVG-svg-inline-loader.zip


BIN
3-2使用TypeScript语言.zip


BIN
3-3使用Flow检查器.zip


BIN
3-4使用SCSS语言.zip


BIN
3-5使用PostCSS.zip


BIN
3-6使用React框架Babel.zip


BIN
3-6使用React框架TypeScript.zip


BIN
3-7使用Vue框架Babel.zip


BIN
3-7使用Vue框架TypeScript.zip


BIN
3-8使用Angular2框架.zip


BIN
3-9为单页应用生成HTML.zip


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-10管理多个单页应用.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-11构建同构应用.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-12构建Electron应用.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-13构建Npm模块.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-14构建离线应用.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-15搭配NpmScript.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-16检查代码.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-17通过Node.jsAPI启动Webpack.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-18使用WebpackDevMiddleware.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-19加载图片.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-1使用ES6语言.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-20加载SVG.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-21加载SourceMap.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-22实战总结.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-2使用TypeScript语言.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-3使用Flow检查器.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-4使用SCSS语言.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-5使用PostCSS.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-6使用React框架.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-7使用Vue框架.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-8使用Angular2框架.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/3-9为单页应用生成HTML.html


ファイルの差分が大きいため隠しています
+ 0 - 2
3实战/index.html


+ 6 - 0
3实战/other/3-10管理多个单页应用/.babelrc

@@ -0,0 +1,6 @@
+{
+  "presets": [
+    "env",
+    "react"
+  ]
+}

+ 3 - 0
3实战/other/3-10管理多个单页应用/common.css

@@ -0,0 +1,3 @@
+h1 {
+  color: red;
+}

+ 6 - 0
3实战/other/3-10管理多个单页应用/google_analytics.js

@@ -0,0 +1,6 @@
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ga('create', 'UA-XXXXX-Y', 'auto');
+ga('send', 'pageview');

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません