Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
[added] a json-loader to JSCompiler#fe
Browse files Browse the repository at this point in the history
  • Loading branch information
thealjey committed Jan 14, 2016
1 parent d7be232 commit 11ff8f4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/JSCompiler.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ <h1 class="page-title">Source: JSCompiler.js</h1>
exclude: /node_modules/,
loader: 'babel-loader',
query: {cacheDirectory: true, ...this.options}
}, {
test: /\.json$/,
loader: 'json'
}, {
test: /\.scss$/,
loaders: ['style?singleton', 'css?modules&amp;minimize&amp;importLoaders=1&amp;sourceMap', 'postcss', 'sass?sourceMap']
Expand Down
2 changes: 1 addition & 1 deletion docs/quicksearch.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions lib/JSCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ var JSCompiler = exports.JSCompiler = function (_Compiler) {
exclude: /node_modules/,
loader: 'babel-loader',
query: (0, _extends3.default)({ cacheDirectory: true }, this.options)
}, {
test: /\.json$/,
loader: 'json'
}, {
test: /\.scss$/,
loaders: ['style?singleton', 'css?modules&minimize&importLoaders=1&sourceMap', 'postcss', 'sass?sourceMap']
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"ink-docstrap": "^1.1.0",
"js-yaml": "^3.5.2",
"jsdoc": "^3.4.0",
"json-loader": "^0.5.4",
"memory-fs": "^0.3.0",
"mkdirp": "^0.5.1",
"node-sass": "^3.4.2",
Expand Down
3 changes: 3 additions & 0 deletions src/JSCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ export class JSCompiler extends Compiler {
exclude: /node_modules/,
loader: 'babel-loader',
query: {cacheDirectory: true, ...this.options}
}, {
test: /\.json$/,
loader: 'json'
}, {
test: /\.scss$/,
loaders: ['style?singleton', 'css?modules&minimize&importLoaders=1&sourceMap', 'postcss', 'sass?sourceMap']
Expand Down
3 changes: 3 additions & 0 deletions test/JSCompiler.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ describe('JSCompiler', () => {
exclude: /node_modules/,
loader: 'babel-loader',
query: {cacheDirectory: true, some: 'options'}
}, {
test: /\.json$/,
loader: 'json'
}, {
test: /\.scss$/,
loaders: ['style?singleton', 'css?modules&minimize&importLoaders=1&sourceMap', 'postcss',
Expand Down

0 comments on commit 11ff8f4

Please sign in to comment.