来自UglifyJs Dom7,Webpack,Framework7,TS的app.js中的错误

时间:2018-03-27 11:05:28

标签: typescript npm webpack

我正在使用Typescript以及Framework7,Webpack,ES5等。

n = 100;

t = linspace(-1,1,n);
x = rand(n,1)+1j*rand(n,1);

plot(t(45:55),real(x(45:55)),'.--')
plot(t(45:55),imag(x(45:55)),'.--')

以下命令正常执行:

{
      "name": "f7-cnode",
      "version": "2.2.0",
      "description": "Framework7, Webpack and Babel",
      "main": "index.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1",
        "dev": "webpack-dev-server --config build/webpack.config.js -d --colors --inline",
        "build": "cross-env NODE_ENV=production webpack --config build/webpack.config.js -p --colors --hide-modules --display-optimization-bailout"
      },
      "author": "Nic",
      "license": "MIT",
      "devDependencies": {
        "@types/jquery": "^3.3.1",
        "autoprefixer": "^8.2.0",
        "babel-core": "^6.22.1",
        "babel-loader": "^7.1.4",
        "babel-preset-es2015": "^6.22.0",
        "babel-preset-stage-2": "^6.22.0",
        "copy-webpack-plugin": "^4.0.1",
        "cross-env": "^5.1.4",
        "css-loader": "^0.28.11",
        "extract-text-webpack-plugin": "^3.0.2",
        "file-loader": "^1.1.11",
        "framework7": "^2.1.3",
        "graceful-fs": "^4.1.11",
        "html-loader": "^0.5.5",
        "html-webpack-plugin": "^3.1.0",
        "json-loader": "^0.5.4",
        "less": "^3.0.1",
        "less-loader": "^4.1.0",
        "postcss-loader": "^2.1.3",
        "style-loader": "^0.20.3",
        "url-loader": "^1.0.1",
        "webpack": "^3.10.0",
        "webpack-cli": "^2.0.13",
        "webpack-dev-server": "^2.11.2",
        "webpack-dev-server-proxy": "0.0.8"
      },
      "dependencies": {
        "date-fns": "^1.28.0",
        "node-polyglot": "^2.2.2"
      }
    }

我可以在浏览器中运行它,一切正常。但是当我尝试用它构建它时:

npm run dev

此命令导致错误:

npm run build

我一整天都在苦苦挣扎,我无法摆脱这个错误。

任何想法我怎么能解决这个问题?

0 个答案:

没有答案