1.0.8 • Published 6 years ago

webpack-spud-loader v1.0.8

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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"}}
1.0.8

6 years ago