|
@@ -22,6 +22,7 @@ module.exports = merge(common, {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
test: /\.less$/,
|
|
test: /\.less$/,
|
|
|
|
+ exclude: /\.module\.less$/,
|
|
use: [
|
|
use: [
|
|
MiniCssExtractPlugin.loader,
|
|
MiniCssExtractPlugin.loader,
|
|
'css-loader',
|
|
'css-loader',
|
|
@@ -29,6 +30,19 @@ module.exports = merge(common, {
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ test: /\.module\.less$/,
|
|
|
|
+ use: [
|
|
|
|
+ 'style-loader',
|
|
|
|
+ {
|
|
|
|
+ loader: 'css-loader',
|
|
|
|
+ options: {
|
|
|
|
+ modules: true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ 'less-loader'
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
test: /\.(sass|scss)$/,
|
|
test: /\.(sass|scss)$/,
|
|
use: [
|
|
use: [
|
|
MiniCssExtractPlugin.loader,
|
|
MiniCssExtractPlugin.loader,
|
|
@@ -104,10 +118,10 @@ module.exports = merge(common, {
|
|
// from: /\/hr/, to: '/hr',
|
|
// from: /\/hr/, to: '/hr',
|
|
// from: /\/hr\/indof/, to: '/hr',
|
|
// from: /\/hr\/indof/, to: '/hr',
|
|
from: '/contact', to: '/contact',
|
|
from: '/contact', to: '/contact',
|
|
-
|
|
|
|
|
|
+
|
|
//from: /^\/contact\/company/, to: '/contact',
|
|
//from: /^\/contact\/company/, to: '/contact',
|
|
//from: /^\/product/, to: '/product',
|
|
//from: /^\/product/, to: '/product',
|
|
-
|
|
|
|
|
|
+
|
|
//from: /^\/product\/lockCount/, to: '/product',
|
|
//from: /^\/product\/lockCount/, to: '/product',
|
|
//from: /product/, to: '/product',
|
|
//from: /product/, to: '/product',
|
|
//from: /product\/lockCount/, to: '/product',
|
|
//from: /product\/lockCount/, to: '/product',
|