Created
April 17, 2020 20:05
-
-
Save philipjfulcher/a272f7cb62836e8c81615fd64e7dfd49 to your computer and use it in GitHub Desktop.
Example webpack cnfig for building AngularJS app in Nx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
module.exports = (config, context) => { | |
return { | |
...config, | |
module: { | |
strictExportPresence: true, | |
rules: [ | |
{ | |
test: /\.html$/, | |
use: [ | |
{ loader: 'raw-loader' } | |
] | |
}, | |
// Load js files through Babel | |
{ | |
test: /\.(js|jsx)$/, | |
loader: 'babel-loader', | |
options: { | |
presets: ['@babel/preset-env'], | |
plugins: ['angularjs-annotate'] | |
} | |
} | |
] | |
} | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment