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

webpack-loader-dojo

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-loader-dojo

Webpack 2 loader for Dojo Toolkit v. 1.x

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

dojo-loader for Webpack 2

Webpack loader for Dojo Toolkit 1.x (actually, tested with version 1.10). It adapts dojo modules so they can be bundled by webpack and even used out of Dojo Toolkit ecosystem.

This package is adapted from https://github.com/Nordth/dojo-webpack-loader It supports Webpack 2 as well as comment stripping. It will strip multiline comments, but will not strip single line comments as that can also result in destruction of regular expressions. Please see below for an example of what is needed to add to your webpack config.

Examples:

module: {
        rules: [
            {
                test: /\.js$/,
                use: [{
                    loader: 'webpack-loader-dojo',
                    options: {
                        // We should specify paths to core and dijit modules because we using both
                        dojoCorePath: path.resolve(__dirname, './bower_components/dojo/'),
                        dojoDijitPath: path.resolve(__dirname, './bower_components/dijit/'),

                        // Languages for dojo/nls module which will be in result pack.
                        includeLanguages: ['en'],

                        staticHasFeatures: {
                            ...
                        }
                    }
                }]
            }
        ]
    },

Development

  1. Clone
  2. yarn
  3. npm link to which ever repo you intend to use with

Tests

None, but we are always looking for contributions! There are going to be some when I have a chance. I promise...

License

The MIT License (MIT)

Keywords

FAQs

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