Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The packaged file is too LARGE #124

Closed
JZLeung opened this issue Dec 8, 2017 · 3 comments · Fixed by #157
Closed

The packaged file is too LARGE #124

JZLeung opened this issue Dec 8, 2017 · 3 comments · Fixed by #157

Comments

@JZLeung
Copy link

JZLeung commented Dec 8, 2017

Choose one: is this a 🐛 bug report or 🙋 feature request?
🐛 the

🎛 Configuration (.babelrc, package.json, cli command)

here is my codes:
index.js

console.log('hello, from parcel.')
require('./css/index.css')

import React, {Component} from 'react'
import ReactDOM from 'react-dom'

// import Test from './js/components/test'
const Test = () => {
    return <div>Hey, here is Test Cwefweomponent!!!!!!</div>
}

ReactDOM.render((
    <div>
        <h1>Hello React</h1>
        <h2>Hello Parcel</h2>
        <Test />
    </div>
), document.getElementById('root'))

😯 Current Behavior

after running: NODE_ENV=production && parcel build index.html --no-minify
if without --no-minify, it doesn't work #8

total 1544
-rw-r--r--  1 lynnleung  staff   120B 12  8 17:37 068be14c44c5675d76e18130404f6790.css
-rw-r--r--  1 lynnleung  staff   762K 12  8 17:37 068be14c44c5675d76e18130404f6790.js
-rw-r--r--  1 lynnleung  staff   488B 12  8 17:37 index.html

🌍 Your Environment

Software Version(s)
Parcel 1.03
Node 8.9.1
Yarn 1.3.2
Operating System macOS 10.13.1
@jamiebuilds
Copy link
Member

What doesn't work?

@cedric-marcone
Copy link

I think his problem is :

  • it works with the "--no-minify" flag
  • it doesn't without it
    ;)

@davidnagli
Copy link
Contributor

@cedric-marcone That sounds allot like issue #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants