Skip to content

Commit

Permalink
Use npm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dsamarin committed Aug 19, 2017
1 parent 04a2108 commit 4256457
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
},
"homepage": "https://github.com/oftn-oswg/oftn-l10n-example#readme",
"devDependencies": {
"webpack": "^3.5.5"
"webpack": "^3.5.5",
"webpack-extract-oftn-l10n": "^1.0.0"
},
"dependencies": {
"oftn-l10n": "^0.1.0",
"os-locale": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const l10n = require('../../oftn-l10n');
const l10n = require('oftn-l10n');
const path = require('path');
const oslocale = require('os-locale');

Expand Down
3 changes: 1 addition & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
const path = require('path');
const fs = require('fs');
const ExtractStringsPlugin = require('../webpack-extract-oftn-l10n');
const ExtractStringsPlugin = require('webpack-extract-oftn-l10n');

module.exports = {
entry: path.resolve(__dirname, 'src', 'index.js'),
target: 'node',
// externals: {'../../oftn-l10n': 'require("../../oftn-l10n")'},
output: {
filename: 'index.js',
path: path.resolve(__dirname, 'dist')
Expand Down

0 comments on commit 4256457

Please sign in to comment.