hi:
I use webpack "webpack": "2.2.0", I debug the loader.js, found code dont accept the 'id', and the options is '{}'
{ test: /\.(ts|js)$/, exclude: /node_modules/, use: [{ loader: StringReplacePlugin.replace(null,{ replacements: [{ pattern: /{{(.+Api)}}/g, replacement: function(match, p1, offset, string) { // console.log(arguments); // return 'tsestttt' // return secrets.web[p1]; } }] }), options: { importLoaders: 1 } }] },
hi:
I use webpack "webpack": "2.2.0", I debug the loader.js, found code dont accept the 'id', and the options is '{}'
{ test: /\.(ts|js)$/, exclude: /node_modules/, use: [{ loader: StringReplacePlugin.replace(null,{ replacements: [{ pattern: /{{(.+Api)}}/g, replacement: function(match, p1, offset, string) { // console.log(arguments); // return 'tsestttt' // return secrets.web[p1]; } }] }), options: { importLoaders: 1 } }] },