1 Star 0 Fork 77

shuzhuo/rsuite

forked from rsuite/rsuite 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.karma.js 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');
const webpack = require('webpack');
/**
* @type {import('webpack').webpack.Configuration}
*/
module.exports = {
output: {
pathinfo: true
},
mode: 'development',
resolve: {
extensions: ['.ts', '.tsx', '.js'],
alias: {
'@test': path.resolve(__dirname, './test')
}
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
RUN_ENV: JSON.stringify(process.env.RUN_ENV)
}
})
],
module: {
rules: [
{
test: [/\.tsx?$/, /\.jsx?$/],
use: ['babel-loader?babelrc'],
exclude: /node_modules/
},
{
test: /\.(less|css)$/,
use: [
{
loader: 'style-loader' // creates style nodes from JS strings
},
{
loader: 'css-loader' // translates CSS into CommonJS
},
{
loader: 'less-loader', // compiles Less to CSS,
options: {
lessOptions: {
javascriptEnabled: true
}
}
}
]
}
]
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/shuzhuoiac/rsuite.git
git@gitee.com:shuzhuoiac/rsuite.git
shuzhuoiac
rsuite
rsuite
next

搜索帮助

0d507c66 1850385 C8b1a773 1850385