Skip to content

Commit

Permalink
feat: Bundle cozy-ui on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
drazik committed Jul 25, 2019
1 parent 0ebedf8 commit 0df57f2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions config/webpack.config.inline-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = ({ production }) => ({
rules: [
{
test: /\.styl$/,
exclude: /cozy-ui\/react/,
use: [
{
loader: 'style-loader'
Expand All @@ -33,6 +34,39 @@ module.exports = ({ production }) => ({
loader: 'stylus-loader'
}
]
},
{
test: /\.styl$/,
include: /cozy-ui\/react/,
use: [
{
loader: 'style-loader',
options: { sourceMap: true }
},
{
loader: 'css-loader',
options: {
importLoaders: 2,
sourceMap: true,
modules: true,
localIdentName: 'cozy-ui-bar-[local]--[hash:base64:5]'
}
},
{
loader: 'postcss-loader',
options: {
config: {
ctx: {
env: production ? 'production' : 'development'
}
},
sourceMap: true
}
},
{
loader: 'stylus-loader'
}
]
}
]
},
Expand Down

0 comments on commit 0df57f2

Please sign in to comment.