1 Star 0 Fork 7

kkaaddff/resizeDiv4React

forked from 韩子卢/resizeDiv4React 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
webpack.dev.js 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
韩子卢 提交于 2019-12-30 16:45 . 初始化
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
}
},
],
},
],
},
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kkaaddff/resizeDiv4React.git
git@gitee.com:kkaaddff/resizeDiv4React.git
kkaaddff
resizeDiv4React
resizeDiv4React
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385