I'm moving from webpack to angular-cli and I need it to resolve minified js files. In webpack you'd add extensions: ['', '.ts', '.js', 'min.js', '.json']
to webpack.config. What is the equivalent in angular-cli?
At the moment Angular CLI only supports loading .js
and .ts
files, as shown here .
You might have luck adding the path of the file to the scripts
property of the angular-cli.json
file (added in recent version before beta-16, not sure which one).
Apart from that, extending Webpack config is planned, but has no ETA, as the team hasn't worked on a suitable design for it yet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.