A Webpack loader for importing Proven application code.
npm install --save-dev @proven-network/loader
or
yarn add -D @proven-network/loader
Add the loader to your webpack.config.js
:
module.exports = {
module: {
rules: [
{
test: /\.proven(.js|.ts)$/,
use: 'proven-loader',
},
],
},
}
Add the loader to your next.config.js
:
/** @type {import("next").NextConfig} */
const config = {
webpack: (config) => {
config.module.rules.push({
test: /\.proven(.js|.ts)$/,
use: 'proven-loader',
})
return config
},
}
export default config