Skip to content

yuminjustin/spotlight-templates-san

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spotlight-templates-san

spotlight scaffold template for san

Use:

 spotlight san my-project

 cd my-project

 npm install

 npm run dev

 npm run build

此模板是webpack、san环境
This template is base on webpack, support for san development

1.配置在build/config.js 当中;
Configures in build/config.js

2.关于san start
About san ↑

3.引入gulp对webpack打包后的js做关键字替换让它能支持更低版本IE,经过测试已支持IE7。
(gulp会在执行build之后自动执行,无需手动操作,为保证兼容性请尽量使用es5做开发)
Use gulp to replace javascript keywords in the files packs by webpack, so we can run it on IE7!
(gulp will execute automatically after executing build, no manual operation required, To ensure compatibility please try to use es5 to develop)

4.webpack的热替换好像并不能生效,只会刷新页面。
Webpack hot reload can't work well,just refresh when you edit your files。

5.gulp需要全局安装。
gulp install globally.

6.Upgrade to webpack5


注:开发状态只支持IE11,打包后的代码可以支持到IE7。

notice:When you developing the codes just can run on IE7, then you execute build they can works on IE7.