Skip to content

Commit

Permalink
Create dist dir if not exists when build
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn committed Nov 30, 2016
1 parent dbafbd3 commit b45dd2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const autoprefixer = require('autoprefixer')
const postcss = require('postcss')
const meta = require('../package.json')

if (!fs.existsSync('dist')) {
fs.mkdirSync('dist')
}

const prefixer = postcss([
autoprefixer({
browsers: ['> 1%', 'last 2 versions', 'IE >= 9']
Expand Down

0 comments on commit b45dd2f

Please sign in to comment.