You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Function that returns default values. * Used because Object.assign does a shallow instead of a deep copy. * Using [].push will add to the base array, so a require will alter * the base array output. */'use strict';constpath=require('path');constsrcPath=path.join(__dirname,'/../src');constdfltPort=8000;/** * Get the default modules object for webpack * @return {Object} */functiongetDefaultModules(){return{preLoaders: [{test: /\.(js|jsx)$/,include: srcPath,loader: 'eslint-loader'}],loaders: [{test: /\.css$/,loader: 'style-loader!css-loader!postcss-loader'},{test: /\.sass/,loader: 'style-loader!css-loader!postcss-loader!sass-loader?outputStyle=expanded&indentedSyn'},{test: /\.scss/,loader: 'style-loader!css-loader!postcss-loader!sass-loader?outputStyle=expanded'},{test: /\.less/,loader: 'style-loader!css-loader!postcss-loader!less-loader'},{test: /\.styl/,loader: 'style-loader!css-loader!postcss-loader!stylus-loader'},{test: /\.(png|jpg|gif|woff|woff2|eot|ttf|svg)$/,loader: 'url-loader?limit=8192'},{test: /\.(mp4|mp3|ogg|svg)$/,loader: 'file-loader'}]};}module.exports={srcPath: srcPath,publicPath: '/assets/',port: dfltPort,getDefaultModules: getDefaultModules};
Node version: v6.9.1 NPM version: v3.10.8
Can you tell me how to fix it please? Thanks in advance.😊
The text was updated successfully, but these errors were encountered:
npm run dist
, it happens error:ERROR in app.js from UglifyJs SyntaxError: Unexpected token: name (path) [./cfg/base.js:2,0]
The line happens error:
I think UglifyJs cant parse
let
, so it throwsSyntaxError
. And I know UglifyJs can't parse ES6, but I have used babel to transform ES6 into ES5,my
package.json
:my
.babelrc
:my
default.js
:Node version: v6.9.1
NPM version: v3.10.8
Can you tell me how to fix it please? Thanks in advance.😊
The text was updated successfully, but these errors were encountered: