Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
Remove sass in favour of postcss
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 26, 2016
1 parent 5b0f396 commit 1a0671e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
"html-webpack-harddisk-plugin": "0.0.2",
"html-webpack-plugin": "~2.22.0",
"html-webpack-template": "~5.1.1",
"node-sass": "~3.10.0",
"postcss-import": "~8.1.2",
"postcss-loader": "~0.13.0",
"precss": "~1.4.0",
"react-hot-loader": "~3.0.0-beta.1",
"sass-loader": "~4.0.2",
"shorthand-loader": "~1.0.0",
"standard": "~8.0.0",
"style-loader": "~0.13.1",
Expand Down
6 changes: 3 additions & 3 deletions src/app/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React from 'react'

export default function Layout ({ children }) {
return (
<section class='mw5 mw7-ns mt6 center bg-light-gray pa3 ph5-ns'>
<h1 class='mt0 f3 tc'>Tachyons</h1>
<p class='f5 tc lh-copy'>
<section className='mw5 mw7-ns mt6 center bg-light-gray pa3 ph5-ns'>
<h1 className='mt0 f3 tc'>React Boilerplatinum</h1>
<p className='f5 tc lh-copy'>
<h1>Hello, world!</h1>
{children}
</p>
Expand Down
2 changes: 1 addition & 1 deletion src/app/index.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import '~tachyons/src/tachyons';
@import 'tachyons/src/tachyons';
9 changes: 6 additions & 3 deletions webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin')
const BrowserSyncPlugin = require('browser-sync-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const autoprefixer = require('autoprefixer')
const config = require('./config.json')
const webpack = require('webpack')
const path = require('path')
Expand Down Expand Up @@ -61,8 +60,12 @@ module.exports = {
include: path.resolve('src/app')
}, {
test: /(\.scss|\.css)$/,
loader: 'style!css!postcss!sass'
loader: 'style!css!postcss'
}]
},
postcss: [autoprefixer]
postcss: [
require('postcss-import'),
require('precss'),
require('autoprefixer')
]
}

0 comments on commit 1a0671e

Please sign in to comment.