Skip to content

Commit

Permalink
Merge pull request #167 from benwiley4000/fix-plugins-dir
Browse files Browse the repository at this point in the history
Generator writes correct plugin paths
  • Loading branch information
Robin Frischmann authored Oct 28, 2018
2 parents bb6c8bd + ce2c463 commit eb5238a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import generatePluginList from './generatePluginList'

function generateImportString(plugin, compatibility) {
if (compatibility) {
return `var ${plugin} = require('inline-style-prefixer/plugins/${plugin}')`
return `var ${plugin} = require('inline-style-prefixer/lib/plugins/${plugin}')`
}
return `import ${plugin} from 'inline-style-prefixer/plugins/${plugin}'`
return `import ${plugin} from 'inline-style-prefixer/lib/plugins/${plugin}'`
}

function generateFile(prefixMap, pluginList, compatibility) {
Expand Down

0 comments on commit eb5238a

Please sign in to comment.