Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

image-minify plugin breaks json-loader #670

Closed
constgen opened this issue Jan 12, 2018 · 1 comment
Closed

image-minify plugin breaks json-loader #670

constgen opened this issue Jan 12, 2018 · 1 comment
Labels

Comments

@constgen
Copy link
Contributor

Here is a project sample. Steps to reproduce a bug.

  1. Install dependencies
  2. Run npm run build
  3. CLI throws an error
✖ Building project failed
./src/config.json
Module parse failed: Unexpected token (2:13)
You may need an appropriate loader to handle this file type.
| {
|     "baseUrl": "default"
| }
  1. Comment minify plugin in .neutrinorc.js
 // use(minify)
  1. Run npm run build
  2. Build is successful. You can check this opening index.html

Expected result: Build should not fail when minification is enabled
Actual result: @neutrinojs/minify breaks Webpack json-loader

@constgen constgen added the bug label Jan 12, 2018
@eliperelman
Copy link
Member

I can replicate using @neutrinojs/library but not @neutrinojs/react.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

3 participants