2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 23:00:56 +00:00

Update rollup config

This commit is contained in:
Faris Ansari 2018-05-08 11:29:16 +05:30
parent 69f1deb6de
commit 8e2a44bb89
2 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,13 @@
const path = require('path');
const { getJSConfig, getCSSConfig } = require('frappejs/config/rollup');
module.exports = [
require('frappejs/config/rollup.config.style.js'),
require('frappejs/config/rollup.config.app.js')
getJSConfig({
input: path.resolve(__dirname, 'www/index.js'),
output: path.resolve(__dirname, 'www/dist/js/bundle.js'),
}),
getCSSConfig({
input: path.resolve(__dirname, 'www/index.scss'),
output: path.resolve(__dirname, 'www/dist/css/style.css'),
})
]

1
www/index.scss Normal file
View File

@ -0,0 +1 @@
@import "node_modules/frappejs/client/style/style.scss";