A RetroSearch Logo

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

Search Query:

Showing content from https://github.com/jlongster/sweetjs-loader below:

jlongster/sweetjs-loader: A webpack loader for sweetjs

Use it like any other loader.

It takes a query string that contains sweetjs compiler options. The ones you most likely care about:

example webpack.config.js

Applies the macros in macros.sjs to all .js files.

module.exports = {
  cache: true,
  entry: 'app.js',
  output: {
    filename: 'bundle.js'
  },
  module: {
    loaders: [{
      test: /\.js$/, loader: 'sweetjs?modules[]=./macros.sjs,readers[]=reader-mod'
    }]
  }
};

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