Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ehdev-configer-normal

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ehdev-configer-normal

jarvis's config for multiple pages project

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

EHDEV-CONFIGER-NORMAL


Build Status npm npm node GitHub tag David David

配置说明

配置项默认值说明
buildPathdist输出目录
enableHotModuleReplacementtrue启用热更新
frameworkraect依赖框架,目前只对 react 有做优化,包括引入 react-hot-loader
htmlWebpackPlugin{inject: true, chunksSortMode: 'auto', cache: true, showErrors: true}htmlWebpackPlugin 插件配置, 参考 https://github.com/jantimon/html-webpack-plugin#configuration
browserSupportslast 2 version浏览器支持配置,影响 babelautoprefixer, 配置参考:https://github.com/ai/browserslist
dll{ enable: false, enclude: [] }是否启用 dll,enclude 提供打入 dll 包的模块
providePluginConfig{}主要用来支持 jQuery 依赖全局挂载的老模块, 参考 https://webpack.js.org/plugins/provide-plugin/
babelUseBuiltInstruebabel-preset-env#usebuiltins 配置
httpsfalse开发环境的 https 支持
useFolderAsHtmlNamefalse使用 page 下的目录名作为页面名
publicPath../webpackConfig.output.publicPath, 只在构建时生效
contentBaseundefined配置 devServer 的 contentBase,默认包含当前项目的输出目录,不需要配置
commonVendors[]所有 entry 共享的 vendors
ignorePages[]配置不需要打包的入口,取 pages 下的子目录名

使用说明

svg 用法

引用 svg 路径后加上 ?reactComponnet ,svg 会被转换成 react component 否则 svg 会被当成普通的资源文件,使用 file-loader 加载

import Foo from './foo.svg?reactComponnet';
<Foo />

FAQs

Package last updated on 20 Aug 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc