mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 12:38:58 +08:00
download page
This commit is contained in:
parent
a3dea7bfca
commit
325406776b
@ -5,4 +5,16 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
待补充。
|
## 直接下载
|
||||||
|
|
||||||
|
- [antd.js](http://ant.design/dist/antd.js)
|
||||||
|
- [antd.css](http://ant.design/dist/antd.css)
|
||||||
|
|
||||||
|
> [历史版本](https://github.com/ant-design/ant-design/releases)
|
||||||
|
|
||||||
|
|
||||||
|
## npm
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ npm install antd --save
|
||||||
|
```
|
||||||
|
3
nico.js
3
nico.js
@ -13,6 +13,7 @@ exports.site = {
|
|||||||
repo: package.repository.url,
|
repo: package.repository.url,
|
||||||
issues: package.bugs.url
|
issues: package.bugs.url
|
||||||
};
|
};
|
||||||
|
exports.package = package;
|
||||||
exports.theme = 'site';
|
exports.theme = 'site';
|
||||||
exports.source = process.cwd();
|
exports.source = process.cwd();
|
||||||
exports.output = path.join(process.cwd(), '_site');
|
exports.output = path.join(process.cwd(), '_site');
|
||||||
@ -32,7 +33,7 @@ exports.ignorefilter = function(filepath, subdir) {
|
|||||||
};
|
};
|
||||||
exports.middlewares = [{
|
exports.middlewares = [{
|
||||||
name: 'webpackDevMiddleware',
|
name: 'webpackDevMiddleware',
|
||||||
filter: /antd\.(js|css)(\.map)?$/,
|
filter: /\.(js|css)(\.map)?$/,
|
||||||
handle: function(req, res, next) {
|
handle: function(req, res, next) {
|
||||||
handler = handler || webpackMiddleware(webpackCompiler, {
|
handler = handler || webpackMiddleware(webpackCompiler, {
|
||||||
publicPath: '/dist/',
|
publicPath: '/dist/',
|
||||||
|
@ -51,9 +51,10 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"babel": "babel components --out-dir lib",
|
"babel": "babel components --out-dir lib",
|
||||||
"build": "npm run clean && webpack && nico build",
|
"build": "npm run clean && webpack && nico build",
|
||||||
|
"pack": "npm run clean && webpack --optimize-minimize && nico build",
|
||||||
"start": "npm run clean && nico server --watch",
|
"start": "npm run clean && nico server --watch",
|
||||||
"clean": "rm -rf _site",
|
"clean": "rm -rf _site",
|
||||||
"deploy": "npm run build && node deploy.js",
|
"deploy": "npm run pack && node deploy.js",
|
||||||
"lint": "eslint components index.js --ext '.js,.jsx'",
|
"lint": "eslint components index.js --ext '.js,.jsx'",
|
||||||
"test": "webpack && npm run lint",
|
"test": "webpack && npm run lint",
|
||||||
"prepublish": "npm run babel"
|
"prepublish": "npm run babel"
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{% extends "page.html" %}
|
{% extends "page.html" %}
|
||||||
|
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="/dist/antd.css">
|
<link rel="stylesheet" href="/dist/{{ config.package.name }}-{{ config.package.version }}.css">
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="/dist/antd.js"></script>
|
<script src="/dist/{{ config.package.name }}-{{ config.package.version }}.js"></script>
|
||||||
<script>
|
<script>
|
||||||
window.require = function(path) {
|
window.require = function(path) {
|
||||||
var result = window;
|
var result = window;
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
var webpack = require('webpack');
|
var webpack = require('webpack');
|
||||||
var ExtractTextPlugin = require("extract-text-webpack-plugin");
|
var ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
var pkg = require('./package');
|
||||||
|
|
||||||
|
var entry = {};
|
||||||
|
entry[pkg.name] = './index.js';
|
||||||
|
entry[pkg.name + '-' + pkg.version] = './index.js';
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: entry,
|
||||||
antd: './index.js'
|
|
||||||
},
|
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['', '.js', '.jsx'],
|
extensions: ['', '.js', '.jsx'],
|
||||||
|
Loading…
Reference in New Issue
Block a user