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

one-src

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

one-src

## Description This package is for delivering wep app built by `webpack` or `Angular CLI` ## Install `npm install -g one-src`

  • 1.0.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
Maintainers
1
Weekly downloads
 
Created
Source

npm one-src

Description

This package is for delivering wep app built by webpack or Angular CLI

Install

npm install -g one-src

Usage

onesrc test.html the command will make a js file named test.html.onesrc.js on ./

Example

sample.html

original html file

<!DOCTYPE html>
<html lang="en">
<head>
  <base href="/">
  <meta charset="UTF-8">
  <title>the title</title>
  <link rel="icon" type="image/x-icon" href="favicon.ico">
  <link rel="stylesheet" href="the/path/to/stylesheet.css">
</head>
<body>
<app-root>Loading...</app-root>
<script type="text/javascript" src="the/path/to/bundle1.js"></script>
<script type="text/javascript" src="the/path/to/bundle2.js"></script>
<script type="text/javascript" src="the/path/to/bundle3.js"></script>
</body>
</html>

result.html

html file using js file from onesrc

<!DOCTYPE html>
<html>
<body>
<script type="text/javascript" src="https://your-cdn-server.com/sample.html.onesrc.js"></script>
</body>
</html>

Todo

  1. implement scripts for testing
  2. improve README.md

Keywords

FAQs

Package last updated on 12 Jan 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