
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
通过封装一个基于webpack的打包工具,同时提供给用户自定义配置的能力,完成一个较完整的ts + react + less项目打包方案的整合。
只需要很少的配置就可以完成一个项目的打包
.carlrc.jsconst path = require('path');
module.exports = (env) => {
const isProd = env === 'production';
// 除了这些配置外,其他配置支持扩展plugins等
return {
publicPath: '/',
// 自定义文件名
filename: `[name]/js/[name].[${isProd ? 'contenthash': 'hash'}:8].js`,
chunkFilename: '[name]/js/[name].[contenthash:8].chunk.js',
imageFilename: '[name]/images/[name].[hash:8].[ext]',
otherFilename: '[name]/media/[name].[hash:8].[ext]',
cssFilename: '[name]/css/[name].[contenthash:8].css',
cssChunkFilename: '[name]/css/[name].[contenthash:8].chunk.css',
// resolveAlias: {
// '@': path.resolve(__dirname, 'src'),
// },
// default dist
outDir: 'dist',
devServer: {
index: 'index.html',
port: 9600,
hot: true,
historyApiFallback: {
rewrites: [
{
from: /.*/g,
to: '/'
}
]
},
},
}
}
推荐采用的目录结构,可以在carl-invoker内获取到
FAQs
A cli tool for building a typescript + react project
We found that carl-pack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.