egoist / vuepack

:package: A modern starter which uses Vue 2, Vuex, Vue-router and Webpack 2 (and even Electron)
http://vuepack.surge.sh
MIT License
2.43k stars 202 forks source link

Set config.cssModules to true by default #121

Closed mplewis closed 7 years ago

mplewis commented 7 years ago

The Counter component uses CSS Modules – <div class={style.counter}>.

Since Counter is rendered as part of the default template, I think it would help newbies to enable CSS Modules, just in case they can't figure out why their CSS Modules aren't working.

egoist commented 7 years ago

Should only set it to true when enabled JSX

mplewis commented 7 years ago

Thanks for catching that. I moved the cssModules declaration inside the #if jsx check.

mplewis commented 7 years ago

Thanks a bunch for merging this! I appreciate the work you are doing on VBuild and Vuepack.