修复:添加reset.css和cell加上right-icon的slot (#27)
* add reset css and remove postcss-salad * cell add right icon slog
This commit is contained in:
@@ -4,18 +4,20 @@ var config = {
|
||||
'separators': {'descendent': '__', 'modifier': '--'}
|
||||
}
|
||||
};
|
||||
var reset = require('postcss-css-reset')();
|
||||
|
||||
// https://github.com/trysound/postcss-easy-import
|
||||
var partialImport = require("postcss-easy-import")();
|
||||
var partialImport = require('postcss-easy-import')();
|
||||
|
||||
// 这不是bem,虽然名字叫bem,其实它是suit
|
||||
// https://github.com/saladcss/saladcss-bem
|
||||
var bem = require("saladcss-bem")(config.bem);
|
||||
var bem = require('saladcss-bem')(config.bem);
|
||||
|
||||
// https://github.com/jonathantneal/precss
|
||||
var precss = require("precss")();
|
||||
var precss = require('precss')();
|
||||
|
||||
// https://github.com/postcss/autoprefixer
|
||||
var autoprefixer = require("autoprefixer")();
|
||||
var autoprefixer = require('autoprefixer')();
|
||||
|
||||
module.exports = function (webpack) {
|
||||
// 顺序很重要
|
||||
@@ -23,6 +25,7 @@ module.exports = function (webpack) {
|
||||
partialImport,
|
||||
bem,
|
||||
precss,
|
||||
autoprefixer
|
||||
autoprefixer,
|
||||
reset
|
||||
];
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@ var path = require('path');
|
||||
var slugify = require('transliteration').slugify;
|
||||
var striptags = require('./strip-tags');
|
||||
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
var getPoastcssPlugin = require('./utils/postcss_pipe');
|
||||
var getPostcssPlugin = require('./utils/postcss_pipe');
|
||||
var ProgressBarPlugin = require('progress-bar-webpack-plugin');
|
||||
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
var OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
||||
@@ -107,14 +107,14 @@ module.exports = {
|
||||
new webpack.LoaderOptionsPlugin({
|
||||
minimize: true,
|
||||
options: {
|
||||
postcss: getPoastcssPlugin,
|
||||
postcss: getPostcssPlugin,
|
||||
babel: {
|
||||
presets: ['es2015'],
|
||||
plugins: ['transform-runtime', 'transform-vue-jsx']
|
||||
},
|
||||
vue: {
|
||||
autoprefixer: false,
|
||||
postcss: getPoastcssPlugin
|
||||
postcss: getPostcssPlugin
|
||||
},
|
||||
vueMarkdown: {
|
||||
use: [
|
||||
|
||||
Reference in New Issue
Block a user