Comments (2)
inside the webpack.common.js add the follow plugin
const SRC_DIR = join(process.cwd(), 'src');
new CopyWebpackPlugin([{ from: join(SRC_DIR, 'assets'), to: 'assets' }])
from ng-universal-demo.
Hello man! Works perfectly, thank you very much, this is the final file in case someone else needs it:
const {root} = require('./helpers');
const CopyWebpackPlugin = require("copy-webpack-plugin");
/**
* This is a common webpack config which is the base for all builds
*/
module.exports = {
devtool: 'source-map',
resolve: {
extensions: ['.ts', '.js']
},
output: {
path: root('dist')
},
module: {
rules: [
{test: /\.ts$/, loader: '@ngtools/webpack'},
{test: /\.css$/, loader: 'raw-loader'},
{test: /\.html$/, loader: 'raw-loader'}
]
},
plugins: [new CopyWebpackPlugin([{from: root('src/assets'), to: 'assets'}])]
};
from ng-universal-demo.
Related Issues (20)
- Server render global styles HOT 7
- how to build the file /ngfactory/app/server-app.module.ngfactory HOT 2
- how to add images to pages? HOT 3
- Adding mongoose HOT 3
- aot with universal
- Router resolve with the TransferHttp module
- onBootstrap HOT 1
- How can you access location/url information on the server angular app HOT 3
- Error in starting server HOT 3
- What is the purpose of the TransferHttpModule HOT 8
- Error compiling Scss with npm run build:aot HOT 1
- The server not start HOT 1
- Angular Express Engine service error
- Can't get SASS to work. HOT 1
- Appengine deploy failing HOT 1
- Setting State
- HttpClient HOT 1
- How to make HTTP calls on the server-side inside a lazy loaded module
- security issue with server bundle output
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-universal-demo.