TrySound / rollup-plugin-string

Converts text files to modules
MIT License
85 stars 13 forks source link

css files #21

Closed dvnrsn closed 5 years ago

dvnrsn commented 5 years ago

Doesn't seem to work with css files...

string({
      include: '**/*.css',
    })
import styles from './some.css'

Error: 'default' is not exported...

Is this expected behavior? Should CSS files be supported?

TrySound commented 5 years ago

Yes, it should work. Try this include instead /\.css$/

dvnrsn commented 5 years ago

no longer needed this..