Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
fix(demo): Use postcss for demos
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Feb 28, 2018
1 parent 5ad3962 commit 0557508
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
plugins: {
'postcss-import': {},
// 'postcss-import': {},
// 'postcss-cssnext': {},
'cssnano': {
'autoprefixer': {
'add': true
// 'add': true
}
}
}
Expand Down
9 changes: 8 additions & 1 deletion webpack.config.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ module.exports = {
fallback: 'style-loader',
use: [
{
loader: 'css-loader'
loader: 'css-loader',
options: {
sourceMap: false,
importLoaders: 2
}
},
{
loader: 'postcss-loader'
},
{
loader: 'sass-loader',
Expand Down
2 changes: 0 additions & 2 deletions webpack.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const path = require('path')
const webpack = require('webpack')
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')

const merge = require('webpack-merge')
Expand All @@ -26,7 +25,6 @@ module.exports = merge(common, {
}),
new webpack.HashedModuleIdsPlugin(),
new webpack.optimize.ModuleConcatenationPlugin(),
new OptimizeCssAssetsPlugin(),
new UglifyJSPlugin({
uglifyOptions: {
ecma: 5
Expand Down

0 comments on commit 0557508

Please sign in to comment.