1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/vvjiang-resizeDiv4React

Клонировать/Скачать
webpack.dev.js 1.1 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
韩子卢 Отправлено 30.12.2019 11:45 bb43f16
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const { theme } = require('./package.json');
module.exports = merge(common, {
mode: 'development',
output: {
filename: '[name].[hash].js',
},
devtool: 'source-map',
devServer: {
port: 8787,
open: true,
compress: true,
index: 'demo.html',
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
],
module: {
rules: [{
test: /\.css$/,
exclude: /node_modules/,
use: [MiniCssExtractPlugin.loader, 'css-loader?modules&sourceMap'],
}, {
test: /\.css$/,
include: /node_modules/,
use: [MiniCssExtractPlugin.loader, 'css-loader?sourceMap'],
},
{
test: /\.less$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader?modules&sourceMap',
{
loader: 'less-loader',
options: {
modifyVars: theme
}
},
],
},
],
},
});

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/vvjiang-resizeDiv4React.git
git@api.gitlife.ru:oschina-mirror/vvjiang-resizeDiv4React.git
oschina-mirror
vvjiang-resizeDiv4React
vvjiang-resizeDiv4React
master