Skip to content

webpack loader for PayPal KrakenJS properties (spud) files.

Notifications You must be signed in to change notification settings

dmikey/webpack-spud-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-spud-loader


install

npm -i webpack-spud-loader

usage

module.exports = {
    module: {
      rules: [{
        test: /\.properties$/,
        use: [
          'json-loader',
          'webpack-spud-loader'
        ]
      }]
    }
}

what it does

transforms kraken properties files into json strings using spud, use other webpack loaders to transform or dynamically load things like locale.

input

strings.properties

baz=foo
foo.bar=foo

output

  module.exports = {"baz":"foo","foo":{"bar":"foo"}}

About

webpack loader for PayPal KrakenJS properties (spud) files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published