Browse Source

use ExtractTextPlugin for less files (bootstrap)

experimental
Paweł Jedwabny 4 years ago
parent
commit
9bf78b1ea3
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      webpack.config.js

+ 5
- 1
webpack.config.js View File

@@ -11,7 +11,11 @@ module.exports = {
module: {
loaders: [
{test: /bootstrap\/js\//, loader: 'imports?jQuery=jquery' },
{test: /\.less$/, loader: 'style-loader!css-loader!less-loader'},
{test: /\.less$/,
use: ExtractTextPlugin.extract({
fallback: "style-loader",
use: ["css-loader", "less-loader"]
})},
{test: /\.css$/,
use: ExtractTextPlugin.extract({
fallback: "style-loader",


Loading…
Cancel
Save