-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrollup.config.js
42 lines (41 loc) · 1.25 KB
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// import de nos plugins
import commonjs from 'rollup-plugin-commonjs'; // for ES5 dependencies (use commonjs and "require")
import resolve from 'rollup-plugin-node-resolve'; // for ES5 dependencies (resolve "require" from node_modules)
import postCss from 'rollup-plugin-postcss'; // import css into the .js bundle
import vue from 'rollup-plugin-vue';
import replace from 'rollup-plugin-replace';
//import { terser } from 'rollup-plugin-terser'; // minifyier
export default [{
input: './web/client/src/index.js',
output: {
file: './public/index.js',
format: 'cjs'
},
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify('production')
}),
postCss({ inject: true }),
vue({ template: { compilerOptions: { pad: 'line' } } }),
commonjs(),
resolve(),
]
}
/*, {
input: './web/client/src/index.js',
output: {
file: './public/index.min.js',
format: 'cjs'
},
plugins: [
replace({
'process.env.NODE_ENV': JSON.stringify('production')
}),
postCss({ inject: true }),
vue(),
commonjs(),
resolve(),
terser(),
]
}*/
];