{"id":15192599,"url":"https://github.com/webpack/webpack-with-common-libs","last_synced_at":"2025-10-02T08:30:56.892Z","repository":{"id":13112353,"uuid":"15794040","full_name":"webpack/webpack-with-common-libs","owner":"webpack","description":"webpack with some common libraries","archived":true,"fork":false,"pushed_at":"2016-07-03T09:06:25.000Z","size":1697,"stargazers_count":339,"open_issues_count":8,"forks_count":104,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-30T00:58:51.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webpack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-10T09:38:59.000Z","updated_at":"2024-09-29T23:17:03.000Z","dependencies_parsed_at":"2022-07-12T15:08:30.289Z","dependency_job_id":null,"html_url":"https://github.com/webpack/webpack-with-common-libs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fwebpack-with-common-libs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fwebpack-with-common-libs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fwebpack-with-common-libs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpack%2Fwebpack-with-common-libs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpack","download_url":"https://codeload.github.com/webpack/webpack-with-common-libs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234772456,"owners_count":18884061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-27T22:00:15.934Z","updated_at":"2025-10-02T08:30:51.127Z","avatar_url":"https://github.com/webpack.png","language":"JavaScript","readme":"# webpack with common libs\n\n## Build and run\n\n``` sh\n# First install dependencies\n$ npm install\n\n# And install CLI\n$ npm install webpack webpack-dev-server grunt-cli\n```\n\n### Native\n\n``` sh\n# Build with production config\n$ webpack -p --colors\n\n# Build with development config\n$ webpack -d --colors\n\n$ open index.html\n```\n\n``` sh\n# Build and watch with development server\n$ webpack-dev-server -d --colors\n\n# Just open\n$ open http://localhost:8080/\n\n# Auto reloading\n$ open http://localhost:8080/webpack-dev-server/xxx.html\n# i. e. http://localhost:8080/webpack-dev-server/jquery.html\n```\n\n### With grunt\n\n``` sh\n# Development server\n$ grunt\n\n# Just open\n$ open http://localhost:8080/\n\n# Auto reloading\n$ open http://localhost:8080/webpack-dev-server/xxx.html\n# i. e. http://localhost:8080/webpack-dev-server/jquery.html\n```\n\n``` sh\n# Build with procuction config\n$ grunt build\n\n$ open index.html\n```\n\n## Libraries\n\n### jquery + jquery-ui\n\nFiles: `jquery.html` with `app/jquery`\n\njQuery versions `\u003e= 1.10` have commonjs support. For this versions no special config is required.\n\njQuery version `1.9` has only AMD support, but also needs a `amd: { jQuery: true }` in the `webpack.config.js`\n\njQuery-ui has no commonjs/AMD support. It expects `jQuery` as global variable. Currently jQuery expose ifself as global variable even if a module system is found, but this may change. One can use the `webpack.ProvidePlugin` (see `webpack.config.js`) to provide modules as (fake) global variables.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpack%2Fwebpack-with-common-libs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpack%2Fwebpack-with-common-libs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpack%2Fwebpack-with-common-libs/lists"}