Code Monkey home page Code Monkey logo

react-static-boilerplate's People

Contributors

alerosa avatar b2whats avatar cobbweb avatar creeperyang avatar dax70 avatar frenzzy avatar handtrix avatar i8ramin avatar ilvsx avatar jacobhamblin avatar james4388 avatar koistya avatar lacour avatar xdamman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-static-boilerplate's Issues

IE8出错

SCRIPT1028: 缺少标识符、字符串或数字
browser-sync-client.js (1,22059)
SCRIPT1010: 缺少标识符
vendor.js (12729,11)
SCRIPT1028: 缺少标识符、字符串或数字
app.js (1312,81)

Hot reloading is very slow/模块热替换速度很慢

When I modifying a component , the hot-reloading takes up about 10 seconds to see the changes in browser, does I do anything wrong? how can i make it faster.
我发现模块热替换速度很慢,每次都要花费10多秒时间才能完成浏览器方面的更新。可以在哪些方面解决吗?

DEBUG build is not compatible with IE8

First of all, thanks a million for making this IE8 compatible react repository available. We're in route to production and suddenly told that we have to support IE8 because the business hasn't completed it's IE8 decommissioning project on time.

The issue I've noticed is if you do the debug build yarn build:debug then the app fails to load in IE8.
I get Expected Identifier error in vendor bundle

 if (true) {
    var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
===>      Symbol.for &&

And Expected identifier, string or number in main bundle

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
must be the default: obj

I found If I always to the Uglify call then it works...

if (!DEBUG) {
  config.plugins.push(new webpack.optimize.DedupePlugin())
}
// Must always be done or it won't work in IE8
  config.plugins.push(new webpack.optimize.UglifyJsPlugin({
    compress: { warnings: VERBOSE, screw_ie8: false },
    mangle: { screw_ie8: false },
    output: { screw_ie8: false },
  }))
if (!DEBUG) {
  config.plugins.push(new webpack.optimize.AggressiveMergingPlugin())
  config.module.loaders
    .find(x => x.loader === 'babel-loader').query.plugins
    .unshift(
    'transform-react-remove-prop-types',
    'transform-react-constant-elements',
    'transform-react-inline-elements',
    'transform-es3-modules-literals',
    'transform-es3-member-expression-literals',
    'transform-es3-property-literals'
    )
}

I tried changing it so it didn't compress or mangle, but still did the output screw_ie8 but that caused the same problem.

在IE8下无法运行

源码下到本地install、start之后在IE8浏览器下无法打开,一些打包后的代码报错。
例如:Symbol.for报错“缺少标识符”
在chrome下是能正常执行的。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.