A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://npmjs.com/package/script-loader below:

script-loader - npm

script-loader0.7.2 • Public • Published 8 years ago

Script Loader Install

npm install --save-dev script-loader

Usage

Executes JS script once in global context.

⚠️ Doesn't work in NodeJS

Config (recommended)

import exec from 'script.exec.js';

webpack.config.js

module.exports = {

  module: {

    rules: [

      {

        test: /\.exec\.js$/,

        use: [ 'script-loader' ]

      }

    ]

  }

}

Inline

import exec from 'script-loader!./script.js';

Maintainers

Readme Keywordsnone

Package Sidebar Install Downloads Weekly Downloads

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4