mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-22 22:49:15 +08:00
add docs css
This commit is contained in:
parent
7dba3bab29
commit
50cc0f1ea3
@ -7,6 +7,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|||||||
var version = require('../package.json').version;
|
var version = require('../package.json').version;
|
||||||
var getPoastcssPlugin = require('./utils/postcss_pipe');
|
var getPoastcssPlugin = require('./utils/postcss_pipe');
|
||||||
var ProgressBarPlugin = require('progress-bar-webpack-plugin');
|
var ProgressBarPlugin = require('progress-bar-webpack-plugin');
|
||||||
|
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||||
|
|
||||||
function convert(str) {
|
function convert(str) {
|
||||||
str = str.replace(/(&#x)(\w{4});/gi, function($0) {
|
str = str.replace(/(&#x)(\w{4});/gi, function($0) {
|
||||||
@ -52,7 +53,17 @@ module.exports = {
|
|||||||
loaders: [
|
loaders: [
|
||||||
{
|
{
|
||||||
test: /\.vue$/,
|
test: /\.vue$/,
|
||||||
loader: 'vue-loader'
|
use: [{
|
||||||
|
loader: 'vue-loader',
|
||||||
|
options: {
|
||||||
|
loaders: {
|
||||||
|
css: ExtractTextPlugin.extract({
|
||||||
|
use: 'css-loader!postcss-loader',
|
||||||
|
fallback: 'vue-style-loader'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
@ -61,7 +72,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
loader: 'style-loader!css-loader!postcss-loader'
|
use: ExtractTextPlugin.extract({
|
||||||
|
use: 'css-loader!postcss-loader'
|
||||||
|
})
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.md/,
|
test: /\.md/,
|
||||||
@ -76,6 +89,7 @@ module.exports = {
|
|||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
plugins: [
|
plugins: [
|
||||||
new ProgressBarPlugin(),
|
new ProgressBarPlugin(),
|
||||||
|
new ExtractTextPlugin('[name].css'),
|
||||||
new webpack.LoaderOptionsPlugin({
|
new webpack.LoaderOptionsPlugin({
|
||||||
minimize: true,
|
minimize: true,
|
||||||
options: {
|
options: {
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||||
<title>ZanUI</title>
|
<title>ZanUI</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="/vue/docs/dist/zanui-examples.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>ZanUI</title>
|
<title>ZanUI</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="/vue/docs/dist/zanui-docs.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user