Mithril快速上手工具包:基于ES6等技术的样板应用

Mithril快速上手工具包提供了一套完整的样板应用,集成了ES6、Babel、Webpack 4、Sass/SCSS、Webpack开发服务器热重载以及eslint等开发工具。

使用该工具包,开发者可以通过以下两种方式轻松启动项目:

1. 使用命令行执行npx degit dhinesh03/mithril-starter-kit命令;

2. 或者直接通过git clone命令克隆项目的GitHub仓库。

启动项目后,执行npm install安装依赖,随后使用npm start启动Webpack开发服务器,即可在浏览器中预览应用,并支持热重载功能。

同时,通过执行npm run build命令,可编译应用并生成生产环境所需的文件,所有编译后的文件将存放在dist目录下。

部署应用时,只需将dist目录中的文件传输至Web服务器即可。

zip
mithril-starter-kit-master.zip 预估大小:33个文件
folder
mithril-starter-kit-master 文件夹
folder
config 文件夹
folder
environment 文件夹
file
.env.production 69B
file
.env.development 68B
file
.env 34B
folder
webpack 文件夹
file
webpack.development.js 2KB
file
webpack.production.js 2KB
file
rules.js 2KB
file
webpack.common.js 657B
folder
addons 文件夹
file
webpack.bundleanalyze.js 301B
file
webpack.bundlevisualizer.js 117B
file
paths.js 991B
file
package.json 2KB
file
_config.yml 290B
file
prettier.config.js 152B
file
LICENSE 1KB
file
package-lock.json 530KB
folder
src 文件夹
file
index.js 677B
folder
images 文件夹
file
favicon.png 546B
folder
view 文件夹
file
routes.js 2KB
folder
pages 文件夹
file
landing-page.js 623B
folder
components 文件夹
folder
page-layout 文件夹
file
index.js 236B
file
styles.scss 56B
folder
splash-loader 文件夹
file
index.js 343B
file
styles.scss 2KB
folder
maintenance-layout 文件夹
file
index.js 603B
file
styles.scss 370B
folder
sample-component 文件夹
file
index.js 485B
file
app.scss 345B
file
index.html 229B
file
.eslintrc.js 733B
file
.gitignore 136B
file
webpack.config.js 691B
file
README.md 3KB
file
babel.config.js 565B
zip 文件大小:143.47KB