Some Angular demos import CSS using the ~ character like this:
import `~@angular/material/prebuilt-themes`?
IIUC webpack supports supports ~ as a means to resolve CSS packages from the node_modules directory. Can the ~ character be used in place of node_modules in general when importing css with Angular? In other words is this a part of Angular usage contract for how CSS should be imported or are we just getting this feature as a "side effect" enabled by webpack?
If not does Angular have another approach that it recommends when importing NPM CSS packages?