Commit b852b62f authored by Stanislav Fifik's avatar Stanislav Fifik

fixing webpack for css

parent b8e9fc72
......@@ -44,7 +44,7 @@ module.exports = {
],
BABEL_CONFIG: {
presets: ['env', 'react'],
presets: ['env'],
babelrc: false,
compact: false
},
......@@ -112,13 +112,6 @@ module.exports = {
test: /\.css$/,
loader: $webpack.ExtractTextPlugin.extract({ fallback: 'style-loader', use: 'css-loader' })
},
{
test: /\.scss$/,
loader: $webpack.ExtractTextPlugin.extract({
fallback: 'style-loader',
use: 'css-loader!sass-loader'
})
},
{
test: /\.less$/,
loader: $webpack.ExtractTextPlugin.extract({
......@@ -127,16 +120,12 @@ module.exports = {
})
},
{
test: /\.(png|jpg)$/,
loader: 'url-loader?limit=10000&prefix=img'
},
{
test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: "url-loader?prefix=img/&limit=10000&minetype=application/font-woff"
test: /\.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
loader: 'file-loader?name=fonts/[name].[ext]'
},
{
test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: "file-loader"
test: /\.(png|jpg)$/,
loader: 'file-loader?name=images/[name].[ext]'
},
]
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment