You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			| 
				
					
						 | 
			4 years ago | |
|---|---|---|
| .. | ||
| .npmignore | 4 years ago | |
| CHANGELOG.md | 4 years ago | |
| LICENSE | 4 years ago | |
| README.md | 4 years ago | |
| addScript.js | 4 years ago | |
| index.js | 4 years ago | |
| package.json | 4 years ago | |
		
			
				
				README.md
			
		
		
	
	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
| 
         Juho Vepsäläinen  | 
      
         Joshua Wiens  | 
      
         Kees Kluskens  | 
      
         Sean Larkin  |