Skip to content

Commit

Permalink
feat: testing postcss & css module integration in rollup build
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Akpa committed Dec 13, 2018
1 parent bc1bcd6 commit 0dec7b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"rollup-plugin-filesize": "1.5.0",
"rollup-plugin-json": "2.3.0",
"rollup-plugin-node-resolve": "3.3.0",
"rollup-plugin-postcss": "1.6.3",
"rollup-plugin-replace": "2.0.0",
"rollup-plugin-scss": "0.4.0",
"rollup-plugin-typescript2": "0.12.0",
Expand Down
11 changes: 10 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const scssImporter = require('./config/scss-importer').default

import pack from "./package.json"
import postcss from "postcss"
import rollupPostcss from 'rollup-plugin-postcss'
import autoprefixer from 'autoprefixer'

const fs = require('fs')
Expand Down Expand Up @@ -71,11 +72,19 @@ function genConfig(name) {
input: opts.entry,
external: externals(),
plugins: [
// rollupPostcss({
// modules: true
// }),
aliasTransform(aliasConfig),
commonjs(),
vue({
compileTemplate: true,
css: false,
css: true,
style:{
postcssPlugins:[
rollupPostcss([autoprefixer])
]
},
typescript: {
compilerOptions: {
importHelpers: true,
Expand Down

0 comments on commit 0dec7b6

Please sign in to comment.