Skip to content

Commit

Permalink
Adding yaml-loader (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanLovely authored and sghoweri committed Apr 26, 2018
1 parent 629ad12 commit c91b7a9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
7 changes: 7 additions & 0 deletions packages/build-tools/create-webpack-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@ function createConfig(config) {
name: '[name].[ext]',
},
},
{
test: [/\.yml$/, /\.yaml$/],
use: [
{ loader: 'json-loader' },
{ loader: 'yaml-loader' },
],
},
],
},
plugins: [
Expand Down
3 changes: 2 additions & 1 deletion packages/build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"uglifyjs-webpack-plugin": "^1.2.0",
"webpack": "^3.10.0",
"webpack-dev-server": "^2.11.0",
"webpack-manifest-plugin": "^2.0.0-rc.1"
"webpack-manifest-plugin": "^2.0.0-rc.1",
"yaml-loader": "^0.5.0"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 7 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7162,7 +7162,7 @@ js-tokens@^3.0.0, js-tokens@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"

js-yaml@^3.10.0, js-yaml@^3.4.3, js-yaml@^3.5.1, js-yaml@^3.7.0, js-yaml@^3.8.3, js-yaml@^3.9.0:
js-yaml@^3.10.0, js-yaml@^3.4.3, js-yaml@^3.5.1, js-yaml@^3.5.2, js-yaml@^3.7.0, js-yaml@^3.8.3, js-yaml@^3.9.0:
version "3.11.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.11.0.tgz#597c1a8bd57152f26d622ce4117851a51f5ebaef"
dependencies:
Expand Down Expand Up @@ -13505,6 +13505,12 @@ yaml-lint@^1.2.2:
lodash.snakecase "^4.1.1"
nconf "^0.10.0"

yaml-loader@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/yaml-loader/-/yaml-loader-0.5.0.tgz#86b1982d84a8e429e6647d93de9a0169e1c15827"
dependencies:
js-yaml "^3.5.2"

yargs-parser@^4.1.0, yargs-parser@^4.2.0:
version "4.2.1"
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c"
Expand Down

0 comments on commit c91b7a9

Please sign in to comment.