Skip to content

Commit

Permalink
add babel loader preset
Browse files Browse the repository at this point in the history
  • Loading branch information
crabbly committed Aug 25, 2018
1 parent 9bc8a55 commit ce4067f
Show file tree
Hide file tree
Showing 3 changed files with 385 additions and 6 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"name": "print-js",
"homepage": "http://printjs.crabbly.com",
"description": "A tiny javascript library to help printing from the web.",
"version": "1.0.48",
"version": "1.0.49",
"main": "dist/print.js",
"repository": "https://github.com/crabbly/Print.js",
"license": "MIT",
"dependences": {},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^7.1.5",
"babel-preset-env": "^1.7.0",
"css-loader": "^1.0.0",
"mini-css-extract-plugin": "^0.4.1",
"node-sass": "^4.9.3",
Expand Down
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ module.exports = {
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader'
loader: 'babel-loader',
options: {
presets: ['env']
}
}
},
{
Expand Down
Loading

0 comments on commit ce4067f

Please sign in to comment.