resx-webpack-loader
Thanks to Luke Howard, @binaryluke for his package jsonfromresx.
The important stuff:
moduleexports = ... resolveLoader: alias: 'resx-loader': path modulesDirectories: path module: loaders: test: /\.resx$/ loader: 'resx-loader' ...;
The entire webpack config object of an example use case. Example project can be found at https://github.com/slimeygecko/dojo-webpack-example
moduleexports = entry: './src/dgrid_01_hello' resolveLoader: alias: "dojo/text": 'raw-loader' 'resx-loader': path modulesDirectories: path resolve: alias: "dojo": path "dstore": path "dijit": path "dgrid": path root: path plugins: /wtl\/nls/ { // wtl/nls!resourceFile,resourceFile2 => ../src/wtl/nls?resourceFile,resourceFile2 resultrequest = '../src/' + resultrequest } module: loaders: test: /\.js$/ loader: "dojo-webpack-loader" test: /\.resx$/ loader: 'resx-loader' output: path: path publicPath: "bundle/" filename: "[name].bundle.js" dojoWebpackLoader: // We should specify paths to core and dijit modules because we using both dojoCorePath: path dojoDijitPath: path // Languages for dojo/nls module which will be in result pack. includeLanguages: 'en' 'ru' 'fr' ;