mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 19:16:10 +00:00
fix prod webpack build config (less breaking build)
This commit is contained in:
parent
cfc5d20af2
commit
ef10723d0a
@ -15,15 +15,30 @@ exec('rm -rf dist/')
|
||||
base.devtool = 'cheap-source-map'
|
||||
base.module.loaders.push(
|
||||
{
|
||||
test: /\.css$/,
|
||||
use: ExtractTextPlugin.extract({fallback: 'style-loader', use: 'css-loader'})
|
||||
}, {
|
||||
test: /\.scss$/,
|
||||
use: ExtractTextPlugin.extract({fallback: 'style-loader', use: ['css-loader', 'sass-loader']}),
|
||||
test: /\.less$/,
|
||||
use: ExtractTextPlugin.extract(
|
||||
{
|
||||
fallback: 'style-loader',
|
||||
use: ['css-loader','less-loader']
|
||||
}
|
||||
)
|
||||
},
|
||||
{
|
||||
test: /\.less$/,
|
||||
use: ExtractTextPlugin.extract({fallback: 'style-loader', use: ['css-loader', 'sass-loader']})
|
||||
test: /\.css$/,
|
||||
use: ExtractTextPlugin.extract(
|
||||
{
|
||||
fallback: 'style-loader',
|
||||
use: 'css-loader'
|
||||
}
|
||||
)
|
||||
}, {
|
||||
test: /\.scss$/,
|
||||
use: ExtractTextPlugin.extract(
|
||||
{
|
||||
fallback: 'style-loader',
|
||||
use: ['css-loader', 'sass-loader']
|
||||
}
|
||||
),
|
||||
}
|
||||
)
|
||||
// a white list to add dependencies to vendor chunk
|
||||
|
Loading…
x
Reference in New Issue
Block a user