摘要: 目录结构: 代码目录: const path = require('path'); const webpack = require("webpack"); const CleanPlugin = require("clean webpack plugin"); const CopyWebpackPl 阅读全文
posted @ 2019-12-23 15:58 鱼池离 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 目录结构: 代码: const path = require('path'); const webpack = require("webpack"); let config = require('./webpack.common.js'); config = Object.assign(config 阅读全文
posted @ 2019-12-23 15:57 鱼池离 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 目录结构: 代码: const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html webpack plugin'); const CleanWebpa 阅读全文
posted @ 2019-12-23 15:56 鱼池离 阅读(589) 评论(0) 推荐(0) 编辑
摘要: export const DEFAULT_TITLE = "你好"; // export const PRODUCT_SERVER_URL = "http://10.10.1.12:8080/lottery/api"; // export const DEV_SERVER_URL = "http:/ 阅读全文
posted @ 2019-12-23 15:46 鱼池离 阅读(264) 评论(0) 推荐(0) 编辑
摘要: import 'whatwg fetch'; import 'es6 promise'; require('es6 promise').polyfill(); import as common from 'common/common.js'; function checkStatus(respons 阅读全文
posted @ 2019-12-23 15:38 鱼池离 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 目录结构: 用到缓存的地方: 缓存的方法 清楚缓存 阅读全文
posted @ 2019-12-23 15:13 鱼池离 阅读(460) 评论(0) 推荐(0) 编辑