July 2017
Intermediate to advanced
384 pages
8h 23m
English
It's time to finish the setup. First, make sure that you have PrimeNG and FontAwesome dependencies in the package.json file. For example:
"primeng": "~2.0.2","font-awesome": "~4.7.0"
Second, bundle all CSS files into one file. This task is accomplished by ExtractTextPlugin, which is needed for loaders and plugin configuration:
{test: /.css$/, loader: ExtractTextPlugin.extract({ fallback: "style-loader", use: "css-loader" })},{test: /.scss/, loader: ExtractTextPlugin.extract({ fallback: "style-loader", use: ['css-loader', 'sass-loader'] }), exclude: /^_.*.scss/}...plugins: [ new ExtractTextPlugin({ filename: "[name].css" // file name of the bundle }), ...]
Read now
Unlock full access