All Projects → lvzhenbang → webpack4.x-multi-page

lvzhenbang / webpack4.x-multi-page

Licence: MIT license
multi page application

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to webpack4.x-multi-page

React Pwa
An upgradable boilerplate for Progressive web applications (PWA) with server side rendering, build with SEO in mind and achieving max page speed and optimized user experience.
Stars: ✭ 2,433 (+6302.63%)
Mutual labels:  seo, webpack4
phaser3-typescript-template
A Phaser 3 TypeScript Template
Stars: ✭ 30 (-21.05%)
Mutual labels:  webpack4
server-render-javascript
Prerender your javascript web page for better seo with PhantomJS. ⚠️ no es6 supported.
Stars: ✭ 12 (-68.42%)
Mutual labels:  seo
gas-typescript-webpack
This is an example of writing Google Apps Script in TypeScript and building with webpack
Stars: ✭ 27 (-28.95%)
Mutual labels:  webpack4
Omeka-plugin-CleanUrl
Omeka plugin that allows to have clean, searchable and readable URL like https://example.com/my_collection/dc:identifier instead of https://example.com/items/show/internal_code.
Stars: ✭ 13 (-65.79%)
Mutual labels:  seo
really-rich-results
RRR makes structured data for WordPress really rich, and really easy.
Stars: ✭ 21 (-44.74%)
Mutual labels:  seo
magento-2-google-xml-sitemap
Google XML Sitemap for Magento 2 helps Google search bots find all every corner on your website to index, bring in potential benefits for your SEO strategy. Also, the HTML sitemap will help users more easily search for information on your site than only use Magento default.
Stars: ✭ 31 (-18.42%)
Mutual labels:  seo
critical-plugin
⚙️ Critical plugin for webpack (https://webpack.js.org/)
Stars: ✭ 17 (-55.26%)
Mutual labels:  webpack4
meta-tag-gen
Generate HTML code optimal for social media, SEO, mobile. Uses web standards from Open Graph (Facebook) and Twitter to provide optimal results. Also generates social media posts.
Stars: ✭ 24 (-36.84%)
Mutual labels:  seo
Labs
searchVIU Labs
Stars: ✭ 33 (-13.16%)
Mutual labels:  seo
parcel-plugin-prerender
No description or website provided.
Stars: ✭ 42 (+10.53%)
Mutual labels:  seo
react-ssr-starter
🔥 ⚛️ A React boilerplate for a universal web app with a highly scalable, offline-first foundation and our focus on performance and best practices.
Stars: ✭ 40 (+5.26%)
Mutual labels:  seo
Symfony-4-by-Samples
Symfony 4 by Samples is a personal project in which I will be creating small demos with tutorial in which to learn the symfony framework 4. Each of the samples contains a README.md file that indicates the purpose of the sample plus an step by step guide to reproduce it. Basic topics, login and register form, authentication, webpack encore, sass…
Stars: ✭ 40 (+5.26%)
Mutual labels:  webpack4
seo-analyzer
The library for analyze a HTML file to show all of the SEO defects
Stars: ✭ 53 (+39.47%)
Mutual labels:  seo
vue3-element-admin
🎉 基于 vite2 + vue3 + element-plus 的后台管理系统vue3-element-admin;使用vue-cli可以切换webpack分支
Stars: ✭ 79 (+107.89%)
Mutual labels:  webpack4
react-redux-webpack4-boilerplate
boilerplate for react, redux, webpack4!
Stars: ✭ 39 (+2.63%)
Mutual labels:  webpack4
uiw-admin
UIW-Admin Panel Framework, Powered by React and @uiwjs.
Stars: ✭ 21 (-44.74%)
Mutual labels:  webpack4
angular-app
Angular 14 ,Bootstrap 5, Node.js, Express.js, ESLint, CRUD, PWA, SSR, SEO, Universal, Lazy Loading
Stars: ✭ 389 (+923.68%)
Mutual labels:  seo
sparender
基于puppeteer的高性能SPA SEO解决方案
Stars: ✭ 54 (+42.11%)
Mutual labels:  seo
vue-antdesign-admin-template
Ant Design Pro Vue Template
Stars: ✭ 127 (+234.21%)
Mutual labels:  webpack4

webpack4.x-multi-page

使用webpack4.x快速构建生成一个多页面的静态站点。

可以快速,方便的构建一个对页面的企业站或个人博客。

注:多页面应用 (WPA) 的用户体验相较于 单页面应用 (SPA)的效果,并不是特别好。一个突出的缺点就是抖动

相关项目:

安装项目所需依赖

yarn

优化项目所需的图片资源

npm run img

注:在执行npm run devnpm run build命令前,需要先运行npm run img,这个命令会将项目所需要的图片进行优化,然后输出到正确的目录下,否则,项目启动时会找不到这些图片。

运行项目

npm run dev

发布项目

npm run build

如何构建多页面应用

v1.0.0

  • 移除optimize-css-assets-webpack-plugin插件,使用cssnano来实现对webpack分离出的*.css进行压缩;
  • 移除terser-webpack-plugin插件,使用webpack内置的插件对*.js进行压缩;
  • 优化lazyload,同时修复轮播图的显示问题;
  • 修复由于https造成的地图无法加载的问题。

v0.9.1

  • 更新,处理cdn的阻塞
  • 使用lazyload处理图片

v0.9.0

  • 添加webpack构建分析工具
  • 添加社会责任页面数据
  • 修复站点地图单击事件无效问题
  • 部分样式修改

v0.8.0

  • 引入workbox实现PWA功能
  • 使用manifest.json创建desktop icon

这个版本的代码的演示示例请参考https://lvzhenbang.github.io/webpack4.x-multi-page/dist/

参考文章workbox

v0.7.2

  • 提取子导航的数据(shzr,sxy,zjsj,ywbk),完成整个静态站数据的整理
  • 因为数据存放在*.js文件中,然后被pug-loader处理,进而可以被url-loader处理。这样保证了整个静态站的所有图片都可以被url-loaderfile-loader处理

v0.7.1

  • 修复构建耗时的问题(6-8S构建完成),减少一半多的时间
  • 整理构建启动文件到./build/目录,添加配置文件./config/index.js
  • 启用source-map
  • 启用了SplitChunksPlugin,增加了common模块
  • 修复了productcontactusfooter的bug
  • 为生产模式下的图片添加hash

v0.7 实现web的响应式功能

v0.6 提取整理所有的mock Data && 使用webpack的resolve.alias实现对路径的优化

参考文章:构建多页面应用——优化(二)

v0.5 实现对图片的优化处理 && 给URL添加hash,实现对页面的动画控制

参考文章:构建多页面应用——优化

参考文章:构建多页面应用——hash

v0.4 重构目录,实现对静态资源的处理

参考文章:构建多页面应用——静态资源处理

v0.3 实现html代码的模块化拆分

参考文章:构建多页面应用——模板

v0.2 实现css代码的模块化拆分

参考文章:构建多页面应用——单个页面的处理

v0.1 使用SplitChunk实现js代码模块化拆分

参考文章:构建多页面应用

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].